example-data.com
Menu
Browse docs and collections

songs

songs

Page 63 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": 1489,
      "albumId": 142,
      "artistId": 51,
      "title": "Up Where We Belong",
      "slug": "up-where-we-belong-1489",
      "trackNumber": 7,
      "durationSeconds": 438,
      "isExplicit": false,
      "playCount": 13467431,
      "createdAt": "2024-07-30T17:46:25.362Z"
    },
    {
      "id": 1490,
      "albumId": 142,
      "artistId": 51,
      "title": "Little Darlin'",
      "slug": "little-darlin-1490",
      "trackNumber": 8,
      "durationSeconds": 291,
      "isExplicit": false,
      "playCount": 21228589,
      "createdAt": "2025-07-06T14:20:24.539Z"
    },
    {
      "id": 1491,
      "albumId": 142,
      "artistId": 51,
      "title": "19th Nervous Breakdown",
      "slug": "19th-nervous-breakdown-1491",
      "trackNumber": 9,
      "durationSeconds": 191,
      "isExplicit": false,
      "playCount": 7814957,
      "createdAt": "2023-02-12T00:09:34.660Z"
    }
  ],
  "meta": {
    "page": 63,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=63&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=64&limit=24",
    "prev": "/api/v1/songs?page=62&limit=24"
  }
}