example-data.com
Menu
Browse docs and collections

songs

songs

Page 86 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": 2041,
      "albumId": 192,
      "artistId": 68,
      "title": "Empire State Of Mind",
      "slug": "empire-state-of-mind-2041",
      "trackNumber": 14,
      "durationSeconds": 363,
      "isExplicit": false,
      "playCount": 35076852,
      "createdAt": "2026-01-09T02:23:07.803Z"
    },
    {
      "id": 2042,
      "albumId": 193,
      "artistId": 69,
      "title": "The Sign",
      "slug": "the-sign-2042",
      "trackNumber": 1,
      "durationSeconds": 320,
      "isExplicit": false,
      "playCount": 26677406,
      "createdAt": "2023-02-26T06:01:32.030Z"
    },
    {
      "id": 2043,
      "albumId": 193,
      "artistId": 69,
      "title": "Burn",
      "slug": "burn-2043",
      "trackNumber": 2,
      "durationSeconds": 449,
      "isExplicit": false,
      "playCount": 20766644,
      "createdAt": "2024-01-17T22:53:05.117Z"
    }
  ],
  "meta": {
    "page": 86,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=86&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=87&limit=24",
    "prev": "/api/v1/songs?page=85&limit=24"
  }
}