example-data.com
Menu
Browse docs and collections

Overview

playlists / #182

Hit the Road, Jack Mix

Hit the Road, Jack Mix

Ancilla sonitus coaegresco denique debeo debilito caute ademptio ver sophismata coaegresco.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 182,
  "userId": 174,
  "name": "Hit the Road, Jack Mix",
  "slug": "hit-the-road-jack-mix-182",
  "description": "Ancilla sonitus coaegresco denique debeo debilito caute ademptio ver sophismata coaegresco.",
  "songIds": [
    2234,
    377,
    1936,
    2760,
    403,
    2623,
    733,
    1552,
    1890,
    2818,
    2725,
    1826,
    1714,
    799,
    428,
    157,
    1402,
    534,
    2219,
    1320,
    2926,
    2303,
    2592,
    2430,
    2482,
    1489
  ],
  "isPublic": true,
  "coverUrl": "https://picsum.photos/seed/playlist-182/500/500",
  "createdAt": "2025-04-25T16:40:37.702Z",
  "updatedAt": "2025-05-19T03:03:34.263Z"
}