example-data.com
Menu
Browse docs and collections

songs

songs

Page 116 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": 2761,
      "albumId": 262,
      "artistId": 92,
      "title": "Me & Mrs Jones",
      "slug": "me-mrs-jones-2761",
      "trackNumber": 7,
      "durationSeconds": 423,
      "isExplicit": false,
      "playCount": 81375,
      "createdAt": "2025-06-28T09:40:38.486Z"
    },
    {
      "id": 2762,
      "albumId": 263,
      "artistId": 93,
      "title": "Walk Don't Run",
      "slug": "walk-dont-run-2762",
      "trackNumber": 1,
      "durationSeconds": 459,
      "isExplicit": false,
      "playCount": 41446098,
      "createdAt": "2023-04-20T10:38:49.092Z"
    },
    {
      "id": 2763,
      "albumId": 263,
      "artistId": 93,
      "title": "Manana (Is Soon Enough For Me)",
      "slug": "manana-is-soon-enough-for-me-2763",
      "trackNumber": 2,
      "durationSeconds": 435,
      "isExplicit": false,
      "playCount": 41737934,
      "createdAt": "2025-04-21T02:37:41.819Z"
    }
  ],
  "meta": {
    "page": 116,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=116&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=117&limit=24",
    "prev": "/api/v1/songs?page=115&limit=24"
  }
}