example-data.com
Menu
Browse docs and collections

Overview

playlists / #200

Pony Time Mix

Pony Time Mix

Nihil taedium ait adsum decimus absconditus esse aeneus.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 200,
  "userId": 95,
  "name": "Pony Time Mix",
  "slug": "pony-time-mix-200",
  "description": "Nihil taedium ait adsum decimus absconditus esse aeneus.",
  "songIds": [
    1890,
    1959,
    1581,
    1547,
    691,
    2578,
    2702,
    2629,
    2076,
    78,
    2509,
    1952,
    1452,
    39,
    1164,
    1142,
    2303,
    1488,
    1777,
    1386,
    908,
    1284,
    2018,
    85,
    2918,
    2520
  ],
  "isPublic": true,
  "coverUrl": "https://picsum.photos/seed/playlist-200/500/500",
  "createdAt": "2025-01-07T05:51:53.853Z",
  "updatedAt": "2025-01-26T07:22:59.666Z"
}