example-data.com
Menu
Browse docs and collections

Overview

playlists / #52

Dardanella Mix

Dardanella Mix

Crudelis titulus amitto spoliatio thorax.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 52,
  "userId": 13,
  "name": "Dardanella Mix",
  "slug": "dardanella-mix-52",
  "description": "Crudelis titulus amitto spoliatio thorax.",
  "songIds": [
    1265,
    679,
    1552,
    2426,
    1508,
    1781,
    549,
    2279,
    2284,
    2239,
    374,
    775,
    2659,
    1081,
    1213,
    1425,
    1504,
    1463,
    1338
  ],
  "isPublic": true,
  "coverUrl": "https://picsum.photos/seed/playlist-52/500/500",
  "createdAt": "2024-08-17T09:39:18.617Z",
  "updatedAt": "2024-08-31T00:15:05.010Z"
}