example-data.com
Menu
Browse docs and collections

songs

songs

Page 66 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": 1561,
      "albumId": 149,
      "artistId": 52,
      "title": "Drop it Like It's Hot",
      "slug": "drop-it-like-its-hot-1561",
      "trackNumber": 10,
      "durationSeconds": 468,
      "isExplicit": true,
      "playCount": 13918455,
      "createdAt": "2025-10-30T09:39:43.998Z"
    },
    {
      "id": 1562,
      "albumId": 150,
      "artistId": 53,
      "title": "I Can Help",
      "slug": "i-can-help-1562",
      "trackNumber": 1,
      "durationSeconds": 373,
      "isExplicit": false,
      "playCount": 32032091,
      "createdAt": "2025-05-02T01:14:47.122Z"
    },
    {
      "id": 1563,
      "albumId": 150,
      "artistId": 53,
      "title": "Blue Tango",
      "slug": "blue-tango-1563",
      "trackNumber": 2,
      "durationSeconds": 210,
      "isExplicit": false,
      "playCount": 12363509,
      "createdAt": "2024-12-16T20:16:21.351Z"
    }
  ],
  "meta": {
    "page": 66,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=66&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=67&limit=24",
    "prev": "/api/v1/songs?page=65&limit=24"
  }
}