example-data.com
Menu
Browse docs and collections

songs

songs

Page 17 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": 385,
      "albumId": 35,
      "artistId": 16,
      "title": "Ain't That a Shame",
      "slug": "aint-that-a-shame-385",
      "trackNumber": 5,
      "durationSeconds": 245,
      "isExplicit": false,
      "playCount": 39056304,
      "createdAt": "2022-12-20T13:50:03.806Z"
    },
    {
      "id": 386,
      "albumId": 35,
      "artistId": 16,
      "title": "Another Night",
      "slug": "another-night-386",
      "trackNumber": 6,
      "durationSeconds": 473,
      "isExplicit": false,
      "playCount": 20396510,
      "createdAt": "2025-02-18T06:14:01.884Z"
    },
    {
      "id": 387,
      "albumId": 36,
      "artistId": 16,
      "title": "That'll Be the Day",
      "slug": "thatll-be-the-day-387",
      "trackNumber": 1,
      "durationSeconds": 218,
      "isExplicit": false,
      "playCount": 44352101,
      "createdAt": "2026-03-21T07:49:36.070Z"
    }
  ],
  "meta": {
    "page": 17,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=17&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=18&limit=24",
    "prev": "/api/v1/songs?page=16&limit=24"
  }
}