example-data.com
Menu
Browse docs and collections

Overview

playlists / #46

Sledgehammer Mix

Sledgehammer Mix

Natus trado brevis civis adopto umerus sumptus sopor.

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/playlists/46" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/playlists/46"
);
const playlist = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/playlists.d.ts https://example-data.com/types/playlists.d.ts
import type { Playlist } from "./types/playlists";

const res = await fetch(
  "https://example-data.com/api/v1/playlists/46"
);
const playlist = (await res.json()) as Playlist;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/playlists/46"
)
playlist = res.json()

Response

{
  "id": 46,
  "userId": 145,
  "name": "Sledgehammer Mix",
  "slug": "sledgehammer-mix-46",
  "description": "Natus trado brevis civis adopto umerus sumptus sopor.",
  "songIds": [
    2145,
    2731,
    2158,
    2048,
    1909,
    2135,
    970,
    570,
    1461,
    1312,
    2100,
    1829,
    2585,
    1254,
    1353,
    1928,
    1145,
    929,
    1495,
    963,
    1355,
    2863,
    816,
    2704,
    1592,
    2763,
    704,
    2951,
    1794,
    2266,
    1066,
    2178
  ],
  "isPublic": true,
  "coverUrl": "https://picsum.photos/seed/playlist-46/500/500",
  "createdAt": "2025-08-25T16:32:35.679Z",
  "updatedAt": "2025-09-09T03:37:51.317Z"
}