example-data.com
Menu
Browse docs and collections

songs

songs

Page 118 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": 2809,
      "albumId": 267,
      "artistId": 94,
      "title": "You Belong to Me",
      "slug": "you-belong-to-me-2809",
      "trackNumber": 6,
      "durationSeconds": 203,
      "isExplicit": false,
      "playCount": 37614,
      "createdAt": "2023-04-02T03:01:41.406Z"
    },
    {
      "id": 2810,
      "albumId": 267,
      "artistId": 94,
      "title": "Say You, Say Me",
      "slug": "say-you-say-me-2810",
      "trackNumber": 7,
      "durationSeconds": 322,
      "isExplicit": false,
      "playCount": 39003694,
      "createdAt": "2023-04-01T10:15:48.859Z"
    },
    {
      "id": 2811,
      "albumId": 267,
      "artistId": 94,
      "title": "Up Where We Belong",
      "slug": "up-where-we-belong-2811",
      "trackNumber": 8,
      "durationSeconds": 136,
      "isExplicit": false,
      "playCount": 22589515,
      "createdAt": "2026-03-19T15:54:43.564Z"
    }
  ],
  "meta": {
    "page": 118,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=118&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=119&limit=24",
    "prev": "/api/v1/songs?page=117&limit=24"
  }
}