example-data.com
Menu
Browse docs and collections

Overview

playlists / #99

Love's Theme Mix

Love's Theme Mix

Stella accusamus delinquo super contigo celer adhaero adinventitias accendo deputo beatae.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 99,
  "userId": 77,
  "name": "Love's Theme Mix",
  "slug": "loves-theme-mix-99",
  "description": "Stella accusamus delinquo super contigo celer adhaero adinventitias accendo deputo beatae.",
  "songIds": [
    2018,
    2200,
    2635,
    2234,
    2699,
    2193,
    1227,
    2033,
    1482,
    84,
    746,
    1504,
    1312,
    1771,
    561,
    265,
    1418,
    1572
  ],
  "isPublic": false,
  "coverUrl": "https://picsum.photos/seed/playlist-99/500/500",
  "createdAt": "2025-02-14T13:16:49.873Z",
  "updatedAt": "2025-02-15T20:52:13.761Z"
}