example-data.com
Menu
Browse docs and collections

playlists

playlists

Page 7 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": 145,
      "userId": 158,
      "name": "Look Away Mix",
      "slug": "look-away-mix-145",
      "description": "Cubitum atqui deprecator quasi tumultus arma eligendi.",
      "songIds": [
        361,
        292,
        1325,
        2906,
        1237,
        2365,
        2512,
        1291,
        2710,
        1894,
        223,
        2927,
        592,
        1988,
        191
      ],
      "isPublic": true,
      "coverUrl": "https://picsum.photos/seed/playlist-145/500/500",
      "createdAt": "2025-06-02T07:06:11.299Z",
      "updatedAt": "2025-06-13T06:33:38.366Z"
    },
    {
      "id": 146,
      "userId": 195,
      "name": "You Belong With Me Mix",
      "slug": "you-belong-with-me-mix-146",
      "description": "Vulticulus corona tonsor dolor abundans atrocitas textor.",
      "songIds": [
        1339,
        2916,
        1668,
        2786,
        1214,
        1760,
        1485,
        2157,
        512,
        312,
        2521,
        2706,
        2592,
        2626,
        1843,
        2216,
        2657,
        1127,
        2807,
        105,
        2822,
        156,
        1632,
        2367,
        783,
        1264,
        1408,
        2184,
        617,
        1890,
        189,
        2050,
        95,
        1247,
        2129
      ],
      "isPublic": true,
      "coverUrl": "https://picsum.photos/seed/playlist-146/500/500",
      "createdAt": "2025-05-01T05:40:04.354Z",
      "updatedAt": "2025-05-04T18:17:02.940Z"
    },
    {
      "id": 147,
      "userId": 62,
      "name": "Sir Duke Mix",
      "slug": "sir-duke-mix-147",
      "description": "Valetudo triduana contra cervus verecundia enim termes tolero creptio.",
      "songIds": [
        822,
        643,
        2334,
        2364,
        1826,
        984,
        455,
        2516,
        2214,
        192,
        1800,
        605,
        778,
        2353,
        1575
      ],
      "isPublic": true,
      "coverUrl": "https://picsum.photos/seed/playlist-147/500/500",
      "createdAt": "2024-11-03T03:38:32.546Z",
      "updatedAt": "2024-11-29T15:55:52.738Z"
    }
  ],
  "meta": {
    "page": 7,
    "limit": 24,
    "total": 200,
    "totalPages": 9
  },
  "links": {
    "self": "/api/v1/playlists?page=7&limit=24",
    "first": "/api/v1/playlists?page=1&limit=24",
    "last": "/api/v1/playlists?page=9&limit=24",
    "next": "/api/v1/playlists?page=8&limit=24",
    "prev": "/api/v1/playlists?page=6&limit=24"
  }
}