example-data.com
Menu
Browse docs and collections

songs

songs

Page 84 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": 1993,
      "albumId": 188,
      "artistId": 68,
      "title": "Stand By Me",
      "slug": "stand-by-me-1993",
      "trackNumber": 7,
      "durationSeconds": 260,
      "isExplicit": false,
      "playCount": 24183317,
      "createdAt": "2026-04-30T07:58:08.146Z"
    },
    {
      "id": 1994,
      "albumId": 188,
      "artistId": 68,
      "title": "We've Only Just Begun",
      "slug": "weve-only-just-begun-1994",
      "trackNumber": 8,
      "durationSeconds": 470,
      "isExplicit": false,
      "playCount": 1638852,
      "createdAt": "2024-10-27T11:11:15.839Z"
    },
    {
      "id": 1995,
      "albumId": 188,
      "artistId": 68,
      "title": "I Can't Help Myself (Sugar Pie, Honey Bunch)",
      "slug": "i-cant-help-myself-sugar-pie-honey-bunch-1995",
      "trackNumber": 9,
      "durationSeconds": 237,
      "isExplicit": true,
      "playCount": 24205079,
      "createdAt": "2021-06-16T23:29:14.514Z"
    }
  ],
  "meta": {
    "page": 84,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=84&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=85&limit=24",
    "prev": "/api/v1/songs?page=83&limit=24"
  }
}