example-data.com
Menu
Browse docs and collections

songs

songs

Page 48 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": 1129,
      "albumId": 107,
      "artistId": 41,
      "title": "Long Cool Woman in a Black Dress",
      "slug": "long-cool-woman-in-a-black-dress-1129",
      "trackNumber": 11,
      "durationSeconds": 193,
      "isExplicit": false,
      "playCount": 22442752,
      "createdAt": "2025-12-14T00:00:56.711Z"
    },
    {
      "id": 1130,
      "albumId": 107,
      "artistId": 41,
      "title": "Be My Baby",
      "slug": "be-my-baby-1130",
      "trackNumber": 12,
      "durationSeconds": 329,
      "isExplicit": false,
      "playCount": 36858205,
      "createdAt": "2021-09-09T00:36:25.081Z"
    },
    {
      "id": 1131,
      "albumId": 107,
      "artistId": 41,
      "title": "Frankenstein",
      "slug": "frankenstein-1131",
      "trackNumber": 13,
      "durationSeconds": 132,
      "isExplicit": true,
      "playCount": 29403799,
      "createdAt": "2023-05-16T10:33:29.985Z"
    }
  ],
  "meta": {
    "page": 48,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=48&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=49&limit=24",
    "prev": "/api/v1/songs?page=47&limit=24"
  }
}