example-data.com
Menu
Browse docs and collections

songs

songs

Page 123 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": 2929,
      "albumId": 278,
      "artistId": 98,
      "title": "The Loco-Motion",
      "slug": "the-loco-motion-2929",
      "trackNumber": 11,
      "durationSeconds": 122,
      "isExplicit": false,
      "playCount": 26296416,
      "createdAt": "2023-02-13T11:10:19.891Z"
    },
    {
      "id": 2930,
      "albumId": 278,
      "artistId": 98,
      "title": "Crazy For You",
      "slug": "crazy-for-you-2930",
      "trackNumber": 12,
      "durationSeconds": 103,
      "isExplicit": false,
      "playCount": 46708176,
      "createdAt": "2022-07-11T16:44:36.060Z"
    },
    {
      "id": 2931,
      "albumId": 278,
      "artistId": 98,
      "title": "Cherish",
      "slug": "cherish-2931",
      "trackNumber": 13,
      "durationSeconds": 395,
      "isExplicit": false,
      "playCount": 25021936,
      "createdAt": "2025-10-05T04:05:39.947Z"
    }
  ],
  "meta": {
    "page": 123,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=123&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=124&limit=24",
    "prev": "/api/v1/songs?page=122&limit=24"
  }
}