example-data.com
Menu
Browse docs and collections

songs

songs

Page 51 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": 1201,
      "albumId": 113,
      "artistId": 42,
      "title": "In the Mood",
      "slug": "in-the-mood-1201",
      "trackNumber": 12,
      "durationSeconds": 238,
      "isExplicit": false,
      "playCount": 37892278,
      "createdAt": "2022-04-29T02:57:08.739Z"
    },
    {
      "id": 1202,
      "albumId": 114,
      "artistId": 43,
      "title": "My Heart Will Go On",
      "slug": "my-heart-will-go-on-1202",
      "trackNumber": 1,
      "durationSeconds": 180,
      "isExplicit": true,
      "playCount": 9653340,
      "createdAt": "2025-08-22T20:06:58.870Z"
    },
    {
      "id": 1203,
      "albumId": 114,
      "artistId": 43,
      "title": "Under the Bridge",
      "slug": "under-the-bridge-1203",
      "trackNumber": 2,
      "durationSeconds": 188,
      "isExplicit": false,
      "playCount": 26296321,
      "createdAt": "2021-09-25T01:33:23.115Z"
    }
  ],
  "meta": {
    "page": 51,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=51&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=52&limit=24",
    "prev": "/api/v1/songs?page=50&limit=24"
  }
}