example-data.com
Menu
Browse docs and collections

songs

songs

Page 24 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": 553,
      "albumId": 51,
      "artistId": 21,
      "title": "I Got You (I Feel Good)",
      "slug": "i-got-you-i-feel-good-553",
      "trackNumber": 8,
      "durationSeconds": 465,
      "isExplicit": false,
      "playCount": 20114140,
      "createdAt": "2021-09-10T15:45:51.276Z"
    },
    {
      "id": 554,
      "albumId": 51,
      "artistId": 21,
      "title": "Change the World",
      "slug": "change-the-world-554",
      "trackNumber": 9,
      "durationSeconds": 191,
      "isExplicit": false,
      "playCount": 30899925,
      "createdAt": "2024-02-04T23:56:35.732Z"
    },
    {
      "id": 555,
      "albumId": 52,
      "artistId": 21,
      "title": "Royals",
      "slug": "royals-555",
      "trackNumber": 1,
      "durationSeconds": 384,
      "isExplicit": false,
      "playCount": 34897101,
      "createdAt": "2025-04-24T14:35:17.377Z"
    }
  ],
  "meta": {
    "page": 24,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=24&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=25&limit=24",
    "prev": "/api/v1/songs?page=23&limit=24"
  }
}