example-data.com
Menu
Browse docs and collections

songs

songs

Page 44 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": 1033,
      "albumId": 99,
      "artistId": 38,
      "title": "Shadow Dancing",
      "slug": "shadow-dancing-1033",
      "trackNumber": 10,
      "durationSeconds": 468,
      "isExplicit": false,
      "playCount": 14374102,
      "createdAt": "2023-04-17T00:45:03.052Z"
    },
    {
      "id": 1034,
      "albumId": 99,
      "artistId": 38,
      "title": "Want Ads",
      "slug": "want-ads-1034",
      "trackNumber": 11,
      "durationSeconds": 245,
      "isExplicit": false,
      "playCount": 530556,
      "createdAt": "2022-08-28T04:22:33.231Z"
    },
    {
      "id": 1035,
      "albumId": 99,
      "artistId": 38,
      "title": "I Feel For You",
      "slug": "i-feel-for-you-1035",
      "trackNumber": 12,
      "durationSeconds": 333,
      "isExplicit": false,
      "playCount": 18408285,
      "createdAt": "2025-04-20T01:45:53.094Z"
    }
  ],
  "meta": {
    "page": 44,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=44&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=45&limit=24",
    "prev": "/api/v1/songs?page=43&limit=24"
  }
}