example-data.com
Menu
Browse docs and collections

songs

songs

Page 72 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": 1705,
      "albumId": 163,
      "artistId": 57,
      "title": "Do That to Me One More Time",
      "slug": "do-that-to-me-one-more-time-1705",
      "trackNumber": 1,
      "durationSeconds": 443,
      "isExplicit": false,
      "playCount": 15530160,
      "createdAt": "2025-02-19T10:13:03.053Z"
    },
    {
      "id": 1706,
      "albumId": 163,
      "artistId": 57,
      "title": "Let's Hear it For the Boy",
      "slug": "lets-hear-it-for-the-boy-1706",
      "trackNumber": 2,
      "durationSeconds": 367,
      "isExplicit": false,
      "playCount": 3272700,
      "createdAt": "2022-07-26T03:40:53.458Z"
    },
    {
      "id": 1707,
      "albumId": 163,
      "artistId": 57,
      "title": "Walk On By",
      "slug": "walk-on-by-1707",
      "trackNumber": 3,
      "durationSeconds": 177,
      "isExplicit": false,
      "playCount": 49996112,
      "createdAt": "2024-03-26T13:15:03.235Z"
    }
  ],
  "meta": {
    "page": 72,
    "limit": 24,
    "total": 2978,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/songs?page=72&limit=24",
    "first": "/api/v1/songs?page=1&limit=24",
    "last": "/api/v1/songs?page=125&limit=24",
    "next": "/api/v1/songs?page=73&limit=24",
    "prev": "/api/v1/songs?page=71&limit=24"
  }
}