example-data.com
Menu
Browse docs and collections

songs

songs

Page 124 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": 2953,
      "albumId": 280,
      "artistId": 99,
      "title": "Sunshine of Your Love",
      "slug": "sunshine-of-your-love-2953",
      "trackNumber": 11,
      "durationSeconds": 329,
      "isExplicit": false,
      "playCount": 7268448,
      "createdAt": "2025-08-06T22:45:32.638Z"
    },
    {
      "id": 2954,
      "albumId": 280,
      "artistId": 99,
      "title": "Man in the Mirror",
      "slug": "man-in-the-mirror-2954",
      "trackNumber": 12,
      "durationSeconds": 114,
      "isExplicit": true,
      "playCount": 4152216,
      "createdAt": "2023-06-18T19:40:50.882Z"
    },
    {
      "id": 2955,
      "albumId": 281,
      "artistId": 100,
      "title": "Sweet Dreams (Are Made of This)",
      "slug": "sweet-dreams-are-made-of-this-2955",
      "trackNumber": 1,
      "durationSeconds": 215,
      "isExplicit": false,
      "playCount": 38032083,
      "createdAt": "2022-03-04T00:58:56.449Z"
    }
  ],
  "meta": {
    "page": 124,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=124&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=125&limit=24",
    "prev": "/api/v1/songs?page=123&limit=24"
  }
}