example-data.com
Menu
Browse docs and collections

songs

songs

Page 15 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": 337,
      "albumId": 31,
      "artistId": 14,
      "title": "Dancing Queen",
      "slug": "dancing-queen-337",
      "trackNumber": 13,
      "durationSeconds": 471,
      "isExplicit": false,
      "playCount": 14168100,
      "createdAt": "2025-07-26T22:26:35.426Z"
    },
    {
      "id": 338,
      "albumId": 32,
      "artistId": 15,
      "title": "Oh, Pretty Woman",
      "slug": "oh-pretty-woman-338",
      "trackNumber": 1,
      "durationSeconds": 267,
      "isExplicit": false,
      "playCount": 36647324,
      "createdAt": "2021-07-26T05:05:32.190Z"
    },
    {
      "id": 339,
      "albumId": 32,
      "artistId": 15,
      "title": "All I Wanna Do",
      "slug": "all-i-wanna-do-339",
      "trackNumber": 2,
      "durationSeconds": 466,
      "isExplicit": false,
      "playCount": 13244642,
      "createdAt": "2023-08-11T03:59:35.369Z"
    }
  ],
  "meta": {
    "page": 15,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=15&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=16&limit=24",
    "prev": "/api/v1/songs?page=14&limit=24"
  }
}