example-data.com
Menu
Browse docs and collections

songs

songs

Page 82 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": 1945,
      "albumId": 184,
      "artistId": 65,
      "title": "Puttin' on the Ritz",
      "slug": "puttin-on-the-ritz-1945",
      "trackNumber": 11,
      "durationSeconds": 293,
      "isExplicit": false,
      "playCount": 27741195,
      "createdAt": "2021-09-27T22:45:17.445Z"
    },
    {
      "id": 1946,
      "albumId": 184,
      "artistId": 65,
      "title": "Long Cool Woman in a Black Dress",
      "slug": "long-cool-woman-in-a-black-dress-1946",
      "trackNumber": 12,
      "durationSeconds": 143,
      "isExplicit": false,
      "playCount": 22340036,
      "createdAt": "2025-05-10T16:14:00.915Z"
    },
    {
      "id": 1947,
      "albumId": 184,
      "artistId": 65,
      "title": "Sweet Child O' Mine",
      "slug": "sweet-child-o-mine-1947",
      "trackNumber": 13,
      "durationSeconds": 244,
      "isExplicit": false,
      "playCount": 7745904,
      "createdAt": "2025-11-29T12:35:08.780Z"
    }
  ],
  "meta": {
    "page": 82,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=82&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=83&limit=24",
    "prev": "/api/v1/songs?page=81&limit=24"
  }
}