example-data.com
Menu
Browse docs and collections

songs

songs

Page 46 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": 1081,
      "albumId": 103,
      "artistId": 40,
      "title": "Shadow Dancing",
      "slug": "shadow-dancing-1081",
      "trackNumber": 7,
      "durationSeconds": 159,
      "isExplicit": true,
      "playCount": 42685272,
      "createdAt": "2023-05-17T04:51:54.325Z"
    },
    {
      "id": 1082,
      "albumId": 103,
      "artistId": 40,
      "title": "Pistol Packin' Mama",
      "slug": "pistol-packin-mama-1082",
      "trackNumber": 8,
      "durationSeconds": 156,
      "isExplicit": false,
      "playCount": 36645567,
      "createdAt": "2026-03-15T01:03:49.415Z"
    },
    {
      "id": 1083,
      "albumId": 103,
      "artistId": 40,
      "title": "Yellow Rose of Texas",
      "slug": "yellow-rose-of-texas-1083",
      "trackNumber": 9,
      "durationSeconds": 334,
      "isExplicit": false,
      "playCount": 13957900,
      "createdAt": "2025-05-06T15:20:14.487Z"
    }
  ],
  "meta": {
    "page": 46,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=46&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=47&limit=24",
    "prev": "/api/v1/songs?page=45&limit=24"
  }
}