example-data.com
Menu
Browse docs and collections

playlists

playlists

Page 9 of 9.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/playlists?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/playlists?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/playlists";

const res = await fetch(
  "https://example-data.com/api/v1/playlists?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Playlist>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/playlists",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 193,
      "userId": 125,
      "name": "Papa Was a Rolling Stone Mix",
      "slug": "papa-was-a-rolling-stone-mix-193",
      "description": "Tametsi calco acquiro ultra ascit colo video attero defero verbum surgo accendo celer delicate careo.",
      "songIds": [
        808,
        2239,
        101,
        2800,
        1385,
        1784,
        2271,
        928,
        2591,
        2011,
        1942,
        2006,
        341,
        1949,
        1438,
        2272,
        717,
        1103
      ],
      "isPublic": false,
      "coverUrl": "https://picsum.photos/seed/playlist-193/500/500",
      "createdAt": "2025-07-25T16:38:43.194Z",
      "updatedAt": "2025-07-31T04:56:24.478Z"
    },
    {
      "id": 194,
      "userId": 165,
      "name": "Wild Thing Mix",
      "slug": "wild-thing-mix-194",
      "description": "Laborum mollitia ex spiritus comes textilis error tego vulgo tactus curvo solus viriliter.",
      "songIds": [
        544,
        1962,
        1315,
        1029,
        1813,
        2617,
        600,
        868,
        1772,
        2501,
        1074,
        2847,
        1491,
        56,
        2667,
        1930,
        1004,
        710,
        2816,
        1411,
        1389,
        1276,
        2774,
        2044,
        2248,
        1376,
        2251,
        2299,
        360,
        602,
        527,
        1427,
        2132,
        1528,
        1273,
        148,
        2283,
        2967,
        1721,
        1951,
        862,
        2315,
        2492,
        2544,
        1274,
        1586,
        1058,
        2905,
        244
      ],
      "isPublic": false,
      "coverUrl": "https://picsum.photos/seed/playlist-194/500/500",
      "createdAt": "2025-07-19T10:06:54.595Z",
      "updatedAt": "2025-08-07T21:30:26.732Z"
    },
    {
      "id": 195,
      "userId": 94,
      "name": "I Heard it Through the Grapevine Mix",
      "slug": "i-heard-it-through-the-grapevine-mix-195",
      "description": "Voluptatibus abstergo caterva depromo aegrotatio eaque culpa bibo.",
      "songIds": [
        780,
        2841,
        557,
        1745,
        2617,
        2018,
        860,
        501,
        572,
        410,
        1780,
        1638,
        1259
      ],
      "isPublic": true,
      "coverUrl": "https://picsum.photos/seed/playlist-195/500/500",
      "createdAt": "2024-07-26T12:51:45.048Z",
      "updatedAt": "2024-08-12T16:54:36.448Z"
    }
  ],
  "meta": {
    "page": 9,
    "limit": 24,
    "total": 200,
    "totalPages": 9
  },
  "links": {
    "self": "/api/v1/playlists?page=9&limit=24",
    "first": "/api/v1/playlists?page=1&limit=24",
    "last": "/api/v1/playlists?page=9&limit=24",
    "next": null,
    "prev": "/api/v1/playlists?page=8&limit=24"
  }
}