example-data.com
Menu
Browse docs and collections

Overview

playlists / #115

Go Your Own Way Mix

Go Your Own Way Mix

Utor usitas totus campana torrens beatus deleo pecus canonicus sordeo adicio ad cubitum.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 115,
  "userId": 124,
  "name": "Go Your Own Way Mix",
  "slug": "go-your-own-way-mix-115",
  "description": "Utor usitas totus campana torrens beatus deleo pecus canonicus sordeo adicio ad cubitum.",
  "songIds": [
    132,
    2275,
    816,
    1097,
    889,
    2,
    2757,
    2633,
    2126,
    339,
    485,
    233,
    1654,
    637,
    999,
    1078,
    1811,
    1081,
    451,
    2339,
    2490,
    744,
    81,
    876,
    643,
    199,
    345,
    1280,
    1746,
    1524,
    2618,
    2505,
    1472,
    2170,
    1277,
    1288,
    541,
    2253,
    1351,
    1859,
    2868,
    90,
    2202,
    186,
    2319,
    1640,
    2784,
    1201,
    1568
  ],
  "isPublic": false,
  "coverUrl": "https://picsum.photos/seed/playlist-115/500/500",
  "createdAt": "2024-11-07T01:35:15.057Z",
  "updatedAt": "2024-11-28T14:13:28.082Z"
}