example-data.com
Menu
Browse docs and collections

Overview

playlists / #158

Walk On the Wild Side Mix

Walk On the Wild Side Mix

Crudelis creator trepide dens contabesco vesco urbs acer agnitio crebro amitto congregatio alveus somniculosus.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 158,
  "userId": 247,
  "name": "Walk On the Wild Side Mix",
  "slug": "walk-on-the-wild-side-mix-158",
  "description": "Crudelis creator trepide dens contabesco vesco urbs acer agnitio crebro amitto congregatio alveus somniculosus.",
  "songIds": [
    1980,
    2331,
    2330,
    2256,
    2662,
    1429,
    628,
    195,
    2354,
    2152,
    2855,
    921,
    859,
    1106,
    2051,
    2666,
    1058,
    2099,
    1602,
    1136,
    1897,
    704,
    164,
    2511,
    1398,
    2066,
    1819,
    845,
    513,
    191,
    1460,
    349,
    2954,
    1745,
    2794,
    2432,
    2753,
    974,
    1318,
    261
  ],
  "isPublic": false,
  "coverUrl": "https://picsum.photos/seed/playlist-158/500/500",
  "createdAt": "2024-05-27T04:30:43.568Z",
  "updatedAt": "2024-06-02T09:22:08.566Z"
}