example-data.com
Menu
Browse docs and collections

Overview

playlists / #92

Cry Like a Baby Mix

Cry Like a Baby Mix

Dolores adimpleo termes alii correptius vereor copiose vindico cernuus suadeo trans stips.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 92,
  "userId": 162,
  "name": "Cry Like a Baby Mix",
  "slug": "cry-like-a-baby-mix-92",
  "description": "Dolores adimpleo termes alii correptius vereor copiose vindico cernuus suadeo trans stips.",
  "songIds": [
    1602,
    1231,
    2445,
    2415,
    1473,
    684,
    1434,
    2078,
    2169,
    1113,
    2657,
    2646,
    544,
    1265,
    2522,
    1504,
    84,
    2022,
    552,
    1132,
    2601,
    609,
    1527,
    2068,
    478,
    1861,
    361,
    1736,
    2543,
    2901,
    1143,
    2868,
    1025,
    2546,
    2027,
    1466,
    498,
    1058,
    345
  ],
  "isPublic": true,
  "coverUrl": "https://picsum.photos/seed/playlist-92/500/500",
  "createdAt": "2024-06-05T16:07:33.546Z",
  "updatedAt": "2024-06-17T20:38:01.092Z"
}