example-data.com
Menu
Browse docs and collections

songs

songs

Page 108 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": 2569,
      "albumId": 243,
      "artistId": 85,
      "title": "Need You Now",
      "slug": "need-you-now-2569",
      "trackNumber": 7,
      "durationSeconds": 171,
      "isExplicit": false,
      "playCount": 1351572,
      "createdAt": "2024-07-31T06:07:56.236Z"
    },
    {
      "id": 2570,
      "albumId": 243,
      "artistId": 85,
      "title": "Sleep Walk",
      "slug": "sleep-walk-2570",
      "trackNumber": 8,
      "durationSeconds": 126,
      "isExplicit": false,
      "playCount": 15649526,
      "createdAt": "2023-12-23T23:36:30.266Z"
    },
    {
      "id": 2571,
      "albumId": 243,
      "artistId": 85,
      "title": "Stop! in the Name of Love",
      "slug": "stop-in-the-name-of-love-2571",
      "trackNumber": 9,
      "durationSeconds": 116,
      "isExplicit": false,
      "playCount": 23641893,
      "createdAt": "2025-10-11T12:52:10.187Z"
    }
  ],
  "meta": {
    "page": 108,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=108&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=109&limit=24",
    "prev": "/api/v1/songs?page=107&limit=24"
  }
}