example-data.com
Menu
Browse docs and collections

playlists

playlists

Page 3 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": 49,
      "userId": 249,
      "name": "Make Love to Me Mix",
      "slug": "make-love-to-me-mix-49",
      "description": "Amissio vinum stultus vae tutis umbra bestia quaerat ars tricesimus celebrer corrigo inflammatio rerum dens.",
      "songIds": [
        1783,
        2230,
        314,
        2579,
        64,
        804,
        2336,
        1451,
        2628,
        1319,
        308,
        691,
        2907,
        2769,
        1564,
        2414,
        1928,
        1965,
        1268,
        2087,
        2057,
        431,
        784,
        2559,
        2489,
        1027,
        477,
        2014,
        2138,
        2177,
        2791,
        698,
        942,
        2699,
        1003,
        1638,
        146,
        883,
        1095
      ],
      "isPublic": false,
      "coverUrl": "https://picsum.photos/seed/playlist-49/500/500",
      "createdAt": "2025-02-15T03:09:09.292Z",
      "updatedAt": "2025-03-02T19:15:19.453Z"
    },
    {
      "id": 50,
      "userId": 76,
      "name": "Only The Lonely (Know The Way I Feel) Mix",
      "slug": "only-the-lonely-know-the-way-i-feel-mix-50",
      "description": "Valens acsi tero vinum vado.",
      "songIds": [
        2479,
        2302,
        601,
        1074,
        521,
        850,
        303,
        740,
        1722,
        2644,
        2023,
        298,
        1175,
        2525,
        973,
        64,
        2789,
        232
      ],
      "isPublic": true,
      "coverUrl": "https://picsum.photos/seed/playlist-50/500/500",
      "createdAt": "2025-05-14T02:53:39.512Z",
      "updatedAt": "2025-06-03T13:48:04.009Z"
    },
    {
      "id": 51,
      "userId": 27,
      "name": "Ring My Bell Mix",
      "slug": "ring-my-bell-mix-51",
      "description": "Depraedor soluta cupiditas dedecor nulla beatus usque texo.",
      "songIds": [
        1480,
        1164,
        2148,
        10,
        2181,
        1600,
        2526,
        967,
        1783,
        2180,
        1668,
        1684,
        1936,
        398,
        954,
        1576,
        1327,
        2363,
        2088,
        2211,
        1167,
        1987,
        147,
        100,
        1375,
        412,
        1133,
        519,
        275,
        615,
        1631,
        1963,
        1162,
        1543,
        1756,
        1388,
        1329,
        817,
        636,
        282,
        1489,
        2922,
        1334,
        69,
        680,
        485,
        2958,
        167,
        1377,
        555
      ],
      "isPublic": true,
      "coverUrl": "https://picsum.photos/seed/playlist-51/500/500",
      "createdAt": "2024-09-17T10:49:03.997Z",
      "updatedAt": "2024-10-16T00:47:51.889Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 200,
    "totalPages": 9
  },
  "links": {
    "self": "/api/v1/playlists?page=3&limit=24",
    "first": "/api/v1/playlists?page=1&limit=24",
    "last": "/api/v1/playlists?page=9&limit=24",
    "next": "/api/v1/playlists?page=4&limit=24",
    "prev": "/api/v1/playlists?page=2&limit=24"
  }
}