example-data.com
Menu
Browse docs and collections

songs

songs

Page 31 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": 721,
      "albumId": 67,
      "artistId": 27,
      "title": "My Life",
      "slug": "my-life-721",
      "trackNumber": 4,
      "durationSeconds": 206,
      "isExplicit": false,
      "playCount": 27217304,
      "createdAt": "2025-10-18T15:43:52.631Z"
    },
    {
      "id": 722,
      "albumId": 67,
      "artistId": 27,
      "title": "Maggie May",
      "slug": "maggie-may-722",
      "trackNumber": 5,
      "durationSeconds": 134,
      "isExplicit": false,
      "playCount": 30893303,
      "createdAt": "2022-03-27T06:41:58.254Z"
    },
    {
      "id": 723,
      "albumId": 67,
      "artistId": 27,
      "title": "When a Man Loves a Woman",
      "slug": "when-a-man-loves-a-woman-723",
      "trackNumber": 6,
      "durationSeconds": 368,
      "isExplicit": false,
      "playCount": 1761097,
      "createdAt": "2024-08-18T10:45:50.467Z"
    }
  ],
  "meta": {
    "page": 31,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=31&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=32&limit=24",
    "prev": "/api/v1/songs?page=30&limit=24"
  }
}