example-data.com
Menu
Browse docs and collections

Overview

albums / #95

Custodia universe annus pecus

Custodia universe annus pecus

2005

classicalbluessoul

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/albums/95" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/albums/95"
);
const album = 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 } from "./types/albums";

const res = await fetch(
  "https://example-data.com/api/v1/albums/95"
);
const album = (await res.json()) as Album;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/albums/95"
)
album = res.json()

Response

{
  "id": 95,
  "artistId": 37,
  "title": "Custodia universe annus pecus",
  "slug": "custodia-universe-annus-pecus-95",
  "releaseDate": "2005-11-21",
  "trackCount": 8,
  "durationSeconds": 986,
  "genres": [
    "classical",
    "blues",
    "soul"
  ],
  "coverUrl": "https://picsum.photos/seed/album-95/500/500",
  "createdAt": "2024-01-27T23:34:06.618Z"
}