example-data.com
Menu
Browse docs and collections

songs

songs

Page 23 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": 529,
      "albumId": 49,
      "artistId": 19,
      "title": "I Wanna Dance With Somebody (Who Loves Me)",
      "slug": "i-wanna-dance-with-somebody-who-loves-me-529",
      "trackNumber": 10,
      "durationSeconds": 284,
      "isExplicit": false,
      "playCount": 3717484,
      "createdAt": "2023-03-22T09:58:12.151Z"
    },
    {
      "id": 530,
      "albumId": 49,
      "artistId": 19,
      "title": "So Much in Love",
      "slug": "so-much-in-love-530",
      "trackNumber": 11,
      "durationSeconds": 473,
      "isExplicit": false,
      "playCount": 41412661,
      "createdAt": "2025-12-30T01:40:54.128Z"
    },
    {
      "id": 531,
      "albumId": 49,
      "artistId": 19,
      "title": "Build Me Up Buttercup",
      "slug": "build-me-up-buttercup-531",
      "trackNumber": 12,
      "durationSeconds": 233,
      "isExplicit": false,
      "playCount": 48745816,
      "createdAt": "2023-01-01T13:12:57.858Z"
    }
  ],
  "meta": {
    "page": 23,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=23&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=24&limit=24",
    "prev": "/api/v1/songs?page=22&limit=24"
  }
}