example-data.com
Menu
Browse docs and collections

playlists

playlists

Page 6 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": 121,
      "userId": 233,
      "name": "Harbour Lights Mix",
      "slug": "harbour-lights-mix-121",
      "description": "Demulceo urbs certe vilicus una tantum.",
      "songIds": [
        805,
        2437,
        2196,
        1702,
        1544,
        2123,
        1727,
        179,
        1854,
        249,
        1711,
        2554,
        2124,
        1776,
        2233,
        453
      ],
      "isPublic": true,
      "coverUrl": "https://picsum.photos/seed/playlist-121/500/500",
      "createdAt": "2026-02-01T05:38:39.380Z",
      "updatedAt": "2026-02-26T07:48:24.107Z"
    },
    {
      "id": 122,
      "userId": 58,
      "name": "(Everything I Do) I Do it For You Mix",
      "slug": "everything-i-do-i-do-it-for-you-mix-122",
      "description": "Excepturi derideo cura derelinquo sit voluptatibus quidem barba crapula trucido baiulus.",
      "songIds": [
        1540,
        1306,
        1311,
        456,
        2141,
        1382,
        1192,
        911,
        1808,
        2709,
        1394,
        1856,
        2945,
        204,
        893,
        2030,
        2138,
        2777,
        989,
        613,
        2099,
        881,
        1185,
        2740,
        1475,
        404,
        934,
        1270,
        2920,
        2381,
        955,
        272,
        94,
        532,
        2116,
        2294,
        1281,
        816
      ],
      "isPublic": false,
      "coverUrl": "https://picsum.photos/seed/playlist-122/500/500",
      "createdAt": "2025-05-25T14:32:20.001Z",
      "updatedAt": "2025-06-17T10:08:54.732Z"
    },
    {
      "id": 123,
      "userId": 223,
      "name": "Love Hangover Mix",
      "slug": "love-hangover-mix-123",
      "description": "Voluptatibus casus impedit custodia agnitio attero succedo ventosus voluptates depereo verbera tondeo celo veritatis ciminatio.",
      "songIds": [
        628,
        553,
        1543,
        1948,
        538,
        2977,
        2295,
        1781,
        2722,
        1416,
        1760,
        1643,
        1236,
        2397,
        1580,
        1843,
        2951,
        2359,
        2300,
        1723,
        873,
        1846,
        2134,
        2834,
        638,
        1014,
        617,
        1061,
        2362,
        1292,
        2006,
        656,
        2040,
        1851,
        2165,
        78,
        2696,
        2139,
        339,
        129,
        901,
        134,
        1743,
        240
      ],
      "isPublic": false,
      "coverUrl": "https://picsum.photos/seed/playlist-123/500/500",
      "createdAt": "2025-08-24T20:12:01.890Z",
      "updatedAt": "2025-09-22T10:03:14.373Z"
    }
  ],
  "meta": {
    "page": 6,
    "limit": 24,
    "total": 200,
    "totalPages": 9
  },
  "links": {
    "self": "/api/v1/playlists?page=6&limit=24",
    "first": "/api/v1/playlists?page=1&limit=24",
    "last": "/api/v1/playlists?page=9&limit=24",
    "next": "/api/v1/playlists?page=7&limit=24",
    "prev": "/api/v1/playlists?page=5&limit=24"
  }
}