example-data.com
Menu
Browse docs and collections

Overview

playlists / #166

Miss You Much Mix

Miss You Much Mix

Civis asper universe vulpes sublime denique spero.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 166,
  "userId": 26,
  "name": "Miss You Much Mix",
  "slug": "miss-you-much-mix-166",
  "description": "Civis asper universe vulpes sublime denique spero.",
  "songIds": [
    2405,
    2152,
    255,
    2611,
    1631,
    2196,
    2791,
    266,
    2544,
    2204,
    1560,
    2693,
    2596,
    1563,
    2972,
    650,
    2566,
    1096,
    2602,
    2593
  ],
  "isPublic": false,
  "coverUrl": "https://picsum.photos/seed/playlist-166/500/500",
  "createdAt": "2024-08-23T05:03:02.817Z",
  "updatedAt": "2024-09-12T04:16:20.585Z"
}