example-data.com
Menu
Browse docs and collections

albums

albums

Page 9 of 12.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/albums?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/albums?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/albums.d.ts https://example-data.com/types/albums.d.ts
import type { Album, ListEnvelope } from "./types/albums";

const res = await fetch(
  "https://example-data.com/api/v1/albums?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Album>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/albums",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 193,
      "artistId": 69,
      "title": "Arca",
      "slug": "arca-193",
      "releaseDate": "2018-05-20",
      "trackCount": 13,
      "durationSeconds": 3571,
      "genres": [
        "soul",
        "country"
      ],
      "coverUrl": "https://picsum.photos/seed/album-193/500/500",
      "createdAt": "2024-05-03T23:54:16.331Z"
    },
    {
      "id": 194,
      "artistId": 69,
      "title": "Deludo vestigium",
      "slug": "deludo-vestigium-194",
      "releaseDate": "2009-08-10",
      "trackCount": 9,
      "durationSeconds": 2443,
      "genres": [
        "r&b",
        "pop"
      ],
      "coverUrl": "https://picsum.photos/seed/album-194/500/500",
      "createdAt": "2023-09-14T11:43:41.760Z"
    },
    {
      "id": 195,
      "artistId": 69,
      "title": "Demergo",
      "slug": "demergo-195",
      "releaseDate": "2024-04-16",
      "trackCount": 6,
      "durationSeconds": 1610,
      "genres": [
        "jazz"
      ],
      "coverUrl": "https://picsum.photos/seed/album-195/500/500",
      "createdAt": "2026-03-25T16:40:11.880Z"
    }
  ],
  "meta": {
    "page": 9,
    "limit": 24,
    "total": 282,
    "totalPages": 12
  },
  "links": {
    "self": "/api/v1/albums?page=9&limit=24",
    "first": "/api/v1/albums?page=1&limit=24",
    "last": "/api/v1/albums?page=12&limit=24",
    "next": "/api/v1/albums?page=10&limit=24",
    "prev": "/api/v1/albums?page=8&limit=24"
  }
}