example-data.com
Menu
Browse docs and collections

songs

songs

Page 73 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": 1729,
      "albumId": 165,
      "artistId": 57,
      "title": "Loving You",
      "slug": "loving-you-1729",
      "trackNumber": 5,
      "durationSeconds": 411,
      "isExplicit": false,
      "playCount": 1439997,
      "createdAt": "2023-07-23T23:09:39.550Z"
    },
    {
      "id": 1730,
      "albumId": 165,
      "artistId": 57,
      "title": "Eye of the Tiger",
      "slug": "eye-of-the-tiger-1730",
      "trackNumber": 6,
      "durationSeconds": 394,
      "isExplicit": false,
      "playCount": 13530679,
      "createdAt": "2026-01-05T07:36:56.602Z"
    },
    {
      "id": 1731,
      "albumId": 165,
      "artistId": 57,
      "title": "Love In This Club",
      "slug": "love-in-this-club-1731",
      "trackNumber": 7,
      "durationSeconds": 244,
      "isExplicit": false,
      "playCount": 6596006,
      "createdAt": "2022-02-15T16:01:13.646Z"
    }
  ],
  "meta": {
    "page": 73,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=73&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=74&limit=24",
    "prev": "/api/v1/songs?page=72&limit=24"
  }
}