example-data.com
Menu
Browse docs and collections

Overview

playlists / #77

You Were Meant for Me Mix

You Were Meant for Me Mix

Auditor desipio curriculum soluta corpus tres.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 77,
  "userId": 159,
  "name": "You Were Meant for Me Mix",
  "slug": "you-were-meant-for-me-mix-77",
  "description": "Auditor desipio curriculum soluta corpus tres.",
  "songIds": [
    2270,
    1742,
    59,
    2945,
    1597,
    2343,
    194,
    1311,
    1228,
    1289,
    440,
    916,
    807,
    1176,
    1786,
    2060,
    2891,
    1575,
    1604,
    759,
    239,
    2497,
    2715,
    2725,
    2849,
    1356,
    698,
    1327,
    2134,
    2864,
    703,
    1134,
    2518,
    1348,
    508,
    2209,
    1828,
    1798,
    151,
    2025,
    242,
    183,
    43,
    928,
    1392,
    83,
    521,
    40
  ],
  "isPublic": true,
  "coverUrl": "https://picsum.photos/seed/playlist-77/500/500",
  "createdAt": "2024-11-12T19:33:56.814Z",
  "updatedAt": "2024-12-07T22:07:56.867Z"
}