example-data.com
Menu
Browse docs and collections

Overview

playlists / #73

Save the Best For Last Mix

Save the Best For Last Mix

Tabesco pauper theca cultellus ago deripio voluntarius taceo torrens termes vito acer adaugeo confero patruus.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 73,
  "userId": 48,
  "name": "Save the Best For Last Mix",
  "slug": "save-the-best-for-last-mix-73",
  "description": "Tabesco pauper theca cultellus ago deripio voluntarius taceo torrens termes vito acer adaugeo confero patruus.",
  "songIds": [
    1466,
    2246,
    1433,
    2208,
    1357,
    1987,
    2773,
    1127,
    87,
    969,
    2442,
    906
  ],
  "isPublic": true,
  "coverUrl": "https://picsum.photos/seed/playlist-73/500/500",
  "createdAt": "2024-08-05T00:38:32.384Z",
  "updatedAt": "2024-08-05T05:50:18.979Z"
}