example-data.com
Menu
Browse docs and collections

playlists

playlists

Page 4 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": 73,
      "userId": 48,
      "name": "Save the Best For Last Mix",
      "slug": "save-the-best-for-last-mix-73",
      "description": "Tabesco pauper theca cultellus ago deripio voluntarius taceo torrens termes vito acer adaugeo confero patruus.",
      "songIds": [
        1466,
        2246,
        1433,
        2208,
        1357,
        1987,
        2773,
        1127,
        87,
        969,
        2442,
        906
      ],
      "isPublic": true,
      "coverUrl": "https://picsum.photos/seed/playlist-73/500/500",
      "createdAt": "2024-08-05T00:38:32.384Z",
      "updatedAt": "2024-08-05T05:50:18.979Z"
    },
    {
      "id": 74,
      "userId": 155,
      "name": "Chapel of Love Mix",
      "slug": "chapel-of-love-mix-74",
      "description": "Consuasor thermae taceo vae utrimque solus spoliatio caecus contigo teneo xiphias atrocitas.",
      "songIds": [
        1567,
        479,
        2452,
        2373,
        870,
        2830,
        2517,
        1400,
        589,
        2142,
        1376,
        1208,
        2921,
        1726,
        2128,
        829,
        2635,
        463,
        2019,
        2877,
        125,
        107,
        2475,
        2695,
        2136,
        645,
        307,
        2596,
        2795,
        2914,
        475,
        2822,
        1436,
        357,
        1194,
        73,
        502,
        526,
        995,
        999,
        2132,
        586,
        283,
        1203,
        23,
        2510,
        1940,
        2240,
        2013
      ],
      "isPublic": true,
      "coverUrl": "https://picsum.photos/seed/playlist-74/500/500",
      "createdAt": "2024-09-15T03:47:31.375Z",
      "updatedAt": "2024-09-22T05:15:48.674Z"
    },
    {
      "id": 75,
      "userId": 16,
      "name": "You Sexy Thing Mix",
      "slug": "you-sexy-thing-mix-75",
      "description": "Amet arbitro absque arto cubitum supra ut sufficio articulus similique vilis articulus natus.",
      "songIds": [
        1109,
        1916,
        1102,
        1739,
        2945,
        1982,
        2118,
        821,
        2102,
        2907,
        432,
        2099,
        2501,
        689,
        981,
        1868,
        1197,
        962,
        998,
        1085,
        1960,
        1981,
        1554,
        1290,
        637,
        727,
        1340,
        818,
        458,
        721,
        305,
        234,
        355,
        249,
        1490,
        1353,
        1564,
        543,
        50,
        2731,
        2239,
        928,
        2302,
        758,
        1903,
        412
      ],
      "isPublic": true,
      "coverUrl": "https://picsum.photos/seed/playlist-75/500/500",
      "createdAt": "2024-09-08T18:47:17.602Z",
      "updatedAt": "2024-10-03T14:35:47.318Z"
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 200,
    "totalPages": 9
  },
  "links": {
    "self": "/api/v1/playlists?page=4&limit=24",
    "first": "/api/v1/playlists?page=1&limit=24",
    "last": "/api/v1/playlists?page=9&limit=24",
    "next": "/api/v1/playlists?page=5&limit=24",
    "prev": "/api/v1/playlists?page=3&limit=24"
  }
}