example-data.com
Menu
Browse docs and collections

songs

songs

Page 60 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": 1417,
      "albumId": 134,
      "artistId": 49,
      "title": "Spinning Wheel",
      "slug": "spinning-wheel-1417",
      "trackNumber": 7,
      "durationSeconds": 313,
      "isExplicit": false,
      "playCount": 17624442,
      "createdAt": "2026-03-14T06:24:22.762Z"
    },
    {
      "id": 1418,
      "albumId": 134,
      "artistId": 49,
      "title": "Miss You Much",
      "slug": "miss-you-much-1418",
      "trackNumber": 8,
      "durationSeconds": 206,
      "isExplicit": false,
      "playCount": 27346432,
      "createdAt": "2023-03-25T17:32:42.866Z"
    },
    {
      "id": 1419,
      "albumId": 134,
      "artistId": 49,
      "title": "On My Own",
      "slug": "on-my-own-1419",
      "trackNumber": 9,
      "durationSeconds": 98,
      "isExplicit": false,
      "playCount": 30744443,
      "createdAt": "2022-07-25T09:33:49.383Z"
    }
  ],
  "meta": {
    "page": 60,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=60&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=61&limit=24",
    "prev": "/api/v1/songs?page=59&limit=24"
  }
}