example-data.com
Menu
Browse docs and collections

songs

songs

Page 115 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": 2737,
      "albumId": 260,
      "artistId": 92,
      "title": "Frenesi",
      "slug": "frenesi-2737",
      "trackNumber": 7,
      "durationSeconds": 341,
      "isExplicit": false,
      "playCount": 18735717,
      "createdAt": "2025-02-03T07:48:15.661Z"
    },
    {
      "id": 2738,
      "albumId": 260,
      "artistId": 92,
      "title": "This Diamond Ring",
      "slug": "this-diamond-ring-2738",
      "trackNumber": 8,
      "durationSeconds": 379,
      "isExplicit": true,
      "playCount": 3694108,
      "createdAt": "2026-01-29T10:48:24.481Z"
    },
    {
      "id": 2739,
      "albumId": 260,
      "artistId": 92,
      "title": "Foolish Games",
      "slug": "foolish-games-2739",
      "trackNumber": 9,
      "durationSeconds": 238,
      "isExplicit": false,
      "playCount": 4362907,
      "createdAt": "2026-02-24T17:49:58.059Z"
    }
  ],
  "meta": {
    "page": 115,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=115&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=116&limit=24",
    "prev": "/api/v1/songs?page=114&limit=24"
  }
}