example-data.com
Menu
Browse docs and collections

songs

songs

Page 113 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": 2689,
      "albumId": 256,
      "artistId": 90,
      "title": "Happy Days Are Here Again",
      "slug": "happy-days-are-here-again-2689",
      "trackNumber": 5,
      "durationSeconds": 435,
      "isExplicit": false,
      "playCount": 26729630,
      "createdAt": "2025-10-02T06:42:55.315Z"
    },
    {
      "id": 2690,
      "albumId": 256,
      "artistId": 90,
      "title": "Crazy For You",
      "slug": "crazy-for-you-2690",
      "trackNumber": 6,
      "durationSeconds": 480,
      "isExplicit": false,
      "playCount": 27177790,
      "createdAt": "2024-02-11T13:27:06.521Z"
    },
    {
      "id": 2691,
      "albumId": 256,
      "artistId": 90,
      "title": "How Will I Know",
      "slug": "how-will-i-know-2691",
      "trackNumber": 7,
      "durationSeconds": 130,
      "isExplicit": false,
      "playCount": 25689961,
      "createdAt": "2022-02-20T06:12:35.134Z"
    }
  ],
  "meta": {
    "page": 113,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=113&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=114&limit=24",
    "prev": "/api/v1/songs?page=112&limit=24"
  }
}