example-data.com
Menu
Browse docs and collections

songs

songs

Page 120 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": 2857,
      "albumId": 271,
      "artistId": 95,
      "title": "Flashdance. What a Feeling",
      "slug": "flashdance-what-a-feeling-2857",
      "trackNumber": 5,
      "durationSeconds": 183,
      "isExplicit": false,
      "playCount": 12362252,
      "createdAt": "2024-04-28T09:47:09.071Z"
    },
    {
      "id": 2858,
      "albumId": 271,
      "artistId": 95,
      "title": "(Just Like) Starting Over",
      "slug": "just-like-starting-over-2858",
      "trackNumber": 6,
      "durationSeconds": 432,
      "isExplicit": false,
      "playCount": 48114449,
      "createdAt": "2021-11-02T07:18:04.570Z"
    },
    {
      "id": 2859,
      "albumId": 271,
      "artistId": 95,
      "title": "Stand By Me",
      "slug": "stand-by-me-2859",
      "trackNumber": 7,
      "durationSeconds": 335,
      "isExplicit": false,
      "playCount": 35889311,
      "createdAt": "2025-12-05T15:45:45.888Z"
    }
  ],
  "meta": {
    "page": 120,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=120&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=121&limit=24",
    "prev": "/api/v1/songs?page=119&limit=24"
  }
}