example-data.com
Menu
Browse docs and collections

songs

songs

Page 20 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": 457,
      "albumId": 43,
      "artistId": 18,
      "title": "Cat's in the Cradle",
      "slug": "cats-in-the-cradle-457",
      "trackNumber": 1,
      "durationSeconds": 241,
      "isExplicit": false,
      "playCount": 40934570,
      "createdAt": "2022-04-26T18:18:56.978Z"
    },
    {
      "id": 458,
      "albumId": 43,
      "artistId": 18,
      "title": "Fantasy",
      "slug": "fantasy-458",
      "trackNumber": 2,
      "durationSeconds": 304,
      "isExplicit": false,
      "playCount": 29357270,
      "createdAt": "2022-07-20T22:34:57.286Z"
    },
    {
      "id": 459,
      "albumId": 43,
      "artistId": 18,
      "title": "House of the Rising Sun",
      "slug": "house-of-the-rising-sun-459",
      "trackNumber": 3,
      "durationSeconds": 219,
      "isExplicit": false,
      "playCount": 35767817,
      "createdAt": "2025-12-23T20:37:49.956Z"
    }
  ],
  "meta": {
    "page": 20,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=20&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=21&limit=24",
    "prev": "/api/v1/songs?page=19&limit=24"
  }
}