example-data.com
Menu
Browse docs and collections

songs

songs

Page 12 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": 265,
      "albumId": 25,
      "artistId": 11,
      "title": "I Walk the Line",
      "slug": "i-walk-the-line-265",
      "trackNumber": 8,
      "durationSeconds": 207,
      "isExplicit": false,
      "playCount": 31330706,
      "createdAt": "2023-05-15T18:32:23.989Z"
    },
    {
      "id": 266,
      "albumId": 25,
      "artistId": 11,
      "title": "Blaze of Glory",
      "slug": "blaze-of-glory-266",
      "trackNumber": 9,
      "durationSeconds": 304,
      "isExplicit": false,
      "playCount": 40308379,
      "createdAt": "2021-06-21T00:22:23.455Z"
    },
    {
      "id": 267,
      "albumId": 25,
      "artistId": 11,
      "title": "Don't Stop 'Til You Get Enough",
      "slug": "dont-stop-til-you-get-enough-267",
      "trackNumber": 10,
      "durationSeconds": 301,
      "isExplicit": false,
      "playCount": 42898545,
      "createdAt": "2026-05-05T00:11:48.155Z"
    }
  ],
  "meta": {
    "page": 12,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=12&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=13&limit=24",
    "prev": "/api/v1/songs?page=11&limit=24"
  }
}