example-data.com
Menu
Browse docs and collections

playlists

playlists

Page 5 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": 97,
      "userId": 155,
      "name": "All I Wanna Do Mix",
      "slug": "all-i-wanna-do-mix-97",
      "description": "Timidus volup tergiversatio agnosco addo ustulo quidem aestivus aro crepusculum cupiditas conforto complectus ustilo.",
      "songIds": [
        1073,
        1611,
        1861,
        1107,
        349,
        624,
        1347,
        1171,
        1187,
        538
      ],
      "isPublic": false,
      "coverUrl": "https://picsum.photos/seed/playlist-97/500/500",
      "createdAt": "2025-08-16T10:40:38.788Z",
      "updatedAt": "2025-08-28T12:18:32.040Z"
    },
    {
      "id": 98,
      "userId": 55,
      "name": "Purple Rain Mix",
      "slug": "purple-rain-mix-98",
      "description": "Contigo vestrum assentator vulgus adnuo talus adimpleo alo.",
      "songIds": [
        2335,
        2813,
        916,
        710,
        389,
        960,
        2191,
        1465,
        2914,
        2267,
        1212,
        2019,
        1061,
        1479,
        651,
        1175,
        2218,
        1224,
        2740
      ],
      "isPublic": true,
      "coverUrl": "https://picsum.photos/seed/playlist-98/500/500",
      "createdAt": "2025-04-07T16:16:35.623Z",
      "updatedAt": "2025-04-11T10:06:11.767Z"
    },
    {
      "id": 99,
      "userId": 77,
      "name": "Love's Theme Mix",
      "slug": "loves-theme-mix-99",
      "description": "Stella accusamus delinquo super contigo celer adhaero adinventitias accendo deputo beatae.",
      "songIds": [
        2018,
        2200,
        2635,
        2234,
        2699,
        2193,
        1227,
        2033,
        1482,
        84,
        746,
        1504,
        1312,
        1771,
        561,
        265,
        1418,
        1572
      ],
      "isPublic": false,
      "coverUrl": "https://picsum.photos/seed/playlist-99/500/500",
      "createdAt": "2025-02-14T13:16:49.873Z",
      "updatedAt": "2025-02-15T20:52:13.761Z"
    }
  ],
  "meta": {
    "page": 5,
    "limit": 24,
    "total": 200,
    "totalPages": 9
  },
  "links": {
    "self": "/api/v1/playlists?page=5&limit=24",
    "first": "/api/v1/playlists?page=1&limit=24",
    "last": "/api/v1/playlists?page=9&limit=24",
    "next": "/api/v1/playlists?page=6&limit=24",
    "prev": "/api/v1/playlists?page=4&limit=24"
  }
}