example-data.com
Menu
Browse docs and collections

Overview

playlists / #58

At the Hop Mix

At the Hop Mix

Teneo depereo absorbeo corrupti aedificium bonus.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 58,
  "userId": 152,
  "name": "At the Hop Mix",
  "slug": "at-the-hop-mix-58",
  "description": "Teneo depereo absorbeo corrupti aedificium bonus.",
  "songIds": [
    25,
    502,
    2507,
    1402,
    1823,
    718,
    2482,
    1110,
    2366,
    1753,
    2807,
    2062,
    2501,
    2114,
    659,
    1497,
    471,
    172,
    2646,
    80,
    635,
    2925,
    2469,
    1541,
    325,
    2609,
    986,
    1575,
    1699,
    1247
  ],
  "isPublic": true,
  "coverUrl": "https://picsum.photos/seed/playlist-58/500/500",
  "createdAt": "2024-09-06T20:41:00.375Z",
  "updatedAt": "2024-09-23T20:51:27.540Z"
}