example-data.com
Menu
Browse docs and collections

songs

songs

Page 91 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": 2161,
      "albumId": 203,
      "artistId": 71,
      "title": "Hips don't lie",
      "slug": "hips-dont-lie-2161",
      "trackNumber": 2,
      "durationSeconds": 258,
      "isExplicit": false,
      "playCount": 8981772,
      "createdAt": "2024-10-31T19:18:54.685Z"
    },
    {
      "id": 2162,
      "albumId": 203,
      "artistId": 71,
      "title": "Take My Breath Away",
      "slug": "take-my-breath-away-2162",
      "trackNumber": 3,
      "durationSeconds": 366,
      "isExplicit": false,
      "playCount": 41916237,
      "createdAt": "2022-02-05T00:44:13.097Z"
    },
    {
      "id": 2163,
      "albumId": 203,
      "artistId": 71,
      "title": "Wicked Game",
      "slug": "wicked-game-2163",
      "trackNumber": 4,
      "durationSeconds": 461,
      "isExplicit": false,
      "playCount": 36041253,
      "createdAt": "2025-10-19T18:19:09.201Z"
    }
  ],
  "meta": {
    "page": 91,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=91&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=92&limit=24",
    "prev": "/api/v1/songs?page=90&limit=24"
  }
}