example-data.com
Menu
Browse docs and collections

songs

songs

Page 26 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": 601,
      "albumId": 55,
      "artistId": 22,
      "title": "Lose Yourself",
      "slug": "lose-yourself-601",
      "trackNumber": 6,
      "durationSeconds": 230,
      "isExplicit": true,
      "playCount": 28804804,
      "createdAt": "2025-02-22T06:25:51.377Z"
    },
    {
      "id": 602,
      "albumId": 55,
      "artistId": 22,
      "title": "The Rose",
      "slug": "the-rose-602",
      "trackNumber": 7,
      "durationSeconds": 348,
      "isExplicit": false,
      "playCount": 1660333,
      "createdAt": "2022-07-09T08:08:50.543Z"
    },
    {
      "id": 603,
      "albumId": 55,
      "artistId": 22,
      "title": "Alone Again (Naturally)",
      "slug": "alone-again-naturally-603",
      "trackNumber": 8,
      "durationSeconds": 151,
      "isExplicit": false,
      "playCount": 45146383,
      "createdAt": "2026-02-10T06:49:19.995Z"
    }
  ],
  "meta": {
    "page": 26,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=26&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=27&limit=24",
    "prev": "/api/v1/songs?page=25&limit=24"
  }
}