example-data.com
Menu
Browse docs and collections

Overview

playlists / #29

Call Me Maybe Mix

Call Me Maybe Mix

Fuga credo adulescens villa doloribus.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 29,
  "userId": 228,
  "name": "Call Me Maybe Mix",
  "slug": "call-me-maybe-mix-29",
  "description": "Fuga credo adulescens villa doloribus.",
  "songIds": [
    1325,
    2029,
    408,
    675,
    372,
    356,
    1090,
    2197,
    614,
    1132,
    2172,
    1733,
    2540,
    739,
    1692
  ],
  "isPublic": false,
  "coverUrl": "https://picsum.photos/seed/playlist-29/500/500",
  "createdAt": "2025-01-02T04:44:09.280Z",
  "updatedAt": "2025-01-06T05:38:21.205Z"
}