example-data.com
Menu
Browse docs and collections

songs

songs

Page 10 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": 217,
      "albumId": 21,
      "artistId": 8,
      "title": "Gold Digger",
      "slug": "gold-digger-217",
      "trackNumber": 5,
      "durationSeconds": 264,
      "isExplicit": true,
      "playCount": 4938687,
      "createdAt": "2021-10-21T07:30:51.311Z"
    },
    {
      "id": 218,
      "albumId": 21,
      "artistId": 8,
      "title": "I'm Looking Over a Four Leaf Clover",
      "slug": "im-looking-over-a-four-leaf-clover-218",
      "trackNumber": 6,
      "durationSeconds": 428,
      "isExplicit": true,
      "playCount": 805108,
      "createdAt": "2025-11-30T16:12:42.341Z"
    },
    {
      "id": 219,
      "albumId": 21,
      "artistId": 8,
      "title": "Seasons in the Sun",
      "slug": "seasons-in-the-sun-219",
      "trackNumber": 7,
      "durationSeconds": 347,
      "isExplicit": false,
      "playCount": 35815445,
      "createdAt": "2023-03-18T10:38:29.811Z"
    }
  ],
  "meta": {
    "page": 10,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=10&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=11&limit=24",
    "prev": "/api/v1/songs?page=9&limit=24"
  }
}