example-data.com
Menu
Browse docs and collections

Overview

playlists / #42

You Belong to Me Mix

You Belong to Me Mix

Tabula quisquam adflicto carcer benigne depulso traho ager asperiores suppellex tabesco abeo terror torqueo.

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/playlists/42"
);
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/42"
);
const playlist = (await res.json()) as Playlist;

Python example

import requests

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

Response

{
  "id": 42,
  "userId": 238,
  "name": "You Belong to Me Mix",
  "slug": "you-belong-to-me-mix-42",
  "description": "Tabula quisquam adflicto carcer benigne depulso traho ager asperiores suppellex tabesco abeo terror torqueo.",
  "songIds": [
    2442,
    2897,
    458,
    2127,
    224,
    2596,
    2431,
    2014,
    349,
    2948,
    1080,
    2395,
    1388,
    1155,
    115,
    929,
    452,
    1136,
    1844,
    1578,
    2175,
    2401,
    2266,
    2734,
    2657,
    669,
    290,
    1631,
    1406,
    1214,
    2367,
    1281
  ],
  "isPublic": true,
  "coverUrl": "https://picsum.photos/seed/playlist-42/500/500",
  "createdAt": "2025-05-13T08:15:33.601Z",
  "updatedAt": "2025-06-09T08:34:52.256Z"
}