example-data.com
Menu
Browse docs and collections

Overview

playlists / #163

Bye Bye, Blackbird Mix

Bye Bye, Blackbird Mix

Comptus minima ducimus beatae approbo aliquid coadunatio surculus.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 163,
  "userId": 106,
  "name": "Bye Bye, Blackbird Mix",
  "slug": "bye-bye-blackbird-mix-163",
  "description": "Comptus minima ducimus beatae approbo aliquid coadunatio surculus.",
  "songIds": [
    1079,
    1979,
    2929,
    2346,
    1462,
    984,
    57,
    1834,
    2196,
    2245,
    778,
    1430,
    1588,
    2596,
    1313,
    1170,
    557,
    439,
    2789,
    2130,
    1612,
    2439,
    944,
    2443,
    1960,
    2784,
    1782
  ],
  "isPublic": false,
  "coverUrl": "https://picsum.photos/seed/playlist-163/500/500",
  "createdAt": "2024-09-08T00:52:39.399Z",
  "updatedAt": "2024-09-17T03:21:56.563Z"
}