example-data.com
Menu
Browse docs and collections

songs

songs

Page 99 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": 2353,
      "albumId": 222,
      "artistId": 78,
      "title": "The Tracks of My Tears",
      "slug": "the-tracks-of-my-tears-2353",
      "trackNumber": 9,
      "durationSeconds": 366,
      "isExplicit": false,
      "playCount": 41960000,
      "createdAt": "2025-10-26T10:49:40.366Z"
    },
    {
      "id": 2354,
      "albumId": 222,
      "artistId": 78,
      "title": "Yellow Rose of Texas",
      "slug": "yellow-rose-of-texas-2354",
      "trackNumber": 10,
      "durationSeconds": 360,
      "isExplicit": false,
      "playCount": 41617566,
      "createdAt": "2026-05-06T08:30:22.927Z"
    },
    {
      "id": 2355,
      "albumId": 222,
      "artistId": 78,
      "title": "Hanging by a Moment",
      "slug": "hanging-by-a-moment-2355",
      "trackNumber": 11,
      "durationSeconds": 227,
      "isExplicit": false,
      "playCount": 23451730,
      "createdAt": "2024-11-06T06:39:35.996Z"
    }
  ],
  "meta": {
    "page": 99,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=99&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=100&limit=24",
    "prev": "/api/v1/songs?page=98&limit=24"
  }
}