example-data.com
Menu
Browse docs and collections

songs

songs

Page 101 of 125.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/songs?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/songs?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/songs.d.ts https://example-data.com/types/songs.d.ts
import type { Song, ListEnvelope } from "./types/songs";

const res = await fetch(
  "https://example-data.com/api/v1/songs?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Song>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/songs",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 2401,
      "albumId": 227,
      "artistId": 80,
      "title": "I Love Rock 'n' Roll",
      "slug": "i-love-rock-n-roll-2401",
      "trackNumber": 4,
      "durationSeconds": 444,
      "isExplicit": false,
      "playCount": 6512626,
      "createdAt": "2021-12-14T20:58:09.483Z"
    },
    {
      "id": 2402,
      "albumId": 227,
      "artistId": 80,
      "title": "Rolling In The Deep",
      "slug": "rolling-in-the-deep-2402",
      "trackNumber": 5,
      "durationSeconds": 225,
      "isExplicit": false,
      "playCount": 10364956,
      "createdAt": "2025-06-26T16:02:03.242Z"
    },
    {
      "id": 2403,
      "albumId": 227,
      "artistId": 80,
      "title": "Gangsta's Paradise",
      "slug": "gangstas-paradise-2403",
      "trackNumber": 6,
      "durationSeconds": 330,
      "isExplicit": false,
      "playCount": 23681677,
      "createdAt": "2023-12-15T22:44:16.174Z"
    }
  ],
  "meta": {
    "page": 101,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=101&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=102&limit=24",
    "prev": "/api/v1/songs?page=100&limit=24"
  }
}