example-data.com
Menu
Browse docs and collections

songs

songs

Page 98 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": 2329,
      "albumId": 220,
      "artistId": 77,
      "title": "Night & Day",
      "slug": "night-day-2329",
      "trackNumber": 6,
      "durationSeconds": 397,
      "isExplicit": false,
      "playCount": 46005024,
      "createdAt": "2024-02-23T16:11:35.375Z"
    },
    {
      "id": 2330,
      "albumId": 220,
      "artistId": 77,
      "title": "Ac-cent-tchu-ate the Positive",
      "slug": "ac-cent-tchu-ate-the-positive-2330",
      "trackNumber": 7,
      "durationSeconds": 461,
      "isExplicit": false,
      "playCount": 34862341,
      "createdAt": "2025-02-20T12:43:11.194Z"
    },
    {
      "id": 2331,
      "albumId": 220,
      "artistId": 77,
      "title": "Oh My Papa (O Mein Papa)",
      "slug": "oh-my-papa-o-mein-papa-2331",
      "trackNumber": 8,
      "durationSeconds": 175,
      "isExplicit": false,
      "playCount": 11589219,
      "createdAt": "2025-12-11T16:52:22.815Z"
    }
  ],
  "meta": {
    "page": 98,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=98&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=99&limit=24",
    "prev": "/api/v1/songs?page=97&limit=24"
  }
}