example-data.com
Menu
Browse docs and collections

songs

songs

Page 58 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": 1369,
      "albumId": 129,
      "artistId": 47,
      "title": "Tutti Frutti",
      "slug": "tutti-frutti-1369",
      "trackNumber": 10,
      "durationSeconds": 434,
      "isExplicit": false,
      "playCount": 13765458,
      "createdAt": "2026-05-11T23:52:56.129Z"
    },
    {
      "id": 1370,
      "albumId": 129,
      "artistId": 47,
      "title": "Hotel California",
      "slug": "hotel-california-1370",
      "trackNumber": 11,
      "durationSeconds": 450,
      "isExplicit": false,
      "playCount": 13214401,
      "createdAt": "2022-10-12T16:58:29.664Z"
    },
    {
      "id": 1371,
      "albumId": 130,
      "artistId": 48,
      "title": "Strange Fruit",
      "slug": "strange-fruit-1371",
      "trackNumber": 1,
      "durationSeconds": 408,
      "isExplicit": false,
      "playCount": 7360496,
      "createdAt": "2026-02-06T09:04:05.190Z"
    }
  ],
  "meta": {
    "page": 58,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=58&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=59&limit=24",
    "prev": "/api/v1/songs?page=57&limit=24"
  }
}