example-data.com
Menu
Browse docs and collections

songs

songs

Page 97 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": 2305,
      "albumId": 218,
      "artistId": 76,
      "title": "Your Cheatin' Heart",
      "slug": "your-cheatin-heart-2305",
      "trackNumber": 6,
      "durationSeconds": 386,
      "isExplicit": false,
      "playCount": 19426831,
      "createdAt": "2021-12-20T09:22:00.438Z"
    },
    {
      "id": 2306,
      "albumId": 218,
      "artistId": 76,
      "title": "The Power of Love",
      "slug": "the-power-of-love-2306",
      "trackNumber": 7,
      "durationSeconds": 286,
      "isExplicit": false,
      "playCount": 12004625,
      "createdAt": "2025-11-03T16:13:40.928Z"
    },
    {
      "id": 2307,
      "albumId": 218,
      "artistId": 76,
      "title": "Ac-cent-tchu-ate the Positive",
      "slug": "ac-cent-tchu-ate-the-positive-2307",
      "trackNumber": 8,
      "durationSeconds": 169,
      "isExplicit": false,
      "playCount": 43463325,
      "createdAt": "2022-03-11T04:27:47.143Z"
    }
  ],
  "meta": {
    "page": 97,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=97&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=98&limit=24",
    "prev": "/api/v1/songs?page=96&limit=24"
  }
}