example-data.com
Menu
Browse docs and collections

songs

songs

Page 80 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": 1897,
      "albumId": 180,
      "artistId": 64,
      "title": "It's All in the Game",
      "slug": "its-all-in-the-game-1897",
      "trackNumber": 11,
      "durationSeconds": 394,
      "isExplicit": false,
      "playCount": 37556582,
      "createdAt": "2024-11-16T19:29:21.680Z"
    },
    {
      "id": 1898,
      "albumId": 180,
      "artistId": 64,
      "title": "Paperback Writer",
      "slug": "paperback-writer-1898",
      "trackNumber": 12,
      "durationSeconds": 324,
      "isExplicit": true,
      "playCount": 22788523,
      "createdAt": "2024-05-09T07:13:01.824Z"
    },
    {
      "id": 1899,
      "albumId": 180,
      "artistId": 64,
      "title": "Airplanes",
      "slug": "airplanes-1899",
      "trackNumber": 13,
      "durationSeconds": 267,
      "isExplicit": false,
      "playCount": 7112693,
      "createdAt": "2025-12-14T23:23:27.840Z"
    }
  ],
  "meta": {
    "page": 80,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=80&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=81&limit=24",
    "prev": "/api/v1/songs?page=79&limit=24"
  }
}