Bestia
2001
folkrockclassical
Overview
albums / #20
2001
Bestia
2001
Request
curl example
curl -sS \ "https://example-data.com/api/v1/albums/20" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/albums/20" ); 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/20"
);
const album = (await res.json()) as Album; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/albums/20"
)
album = res.json() Response
{
"id": 20,
"artistId": 8,
"title": "Bestia",
"slug": "bestia-20",
"releaseDate": "2001-10-18",
"trackCount": 10,
"durationSeconds": 3074,
"genres": [
"folk",
"rock",
"classical"
],
"coverUrl": "https://picsum.photos/seed/album-20/500/500",
"createdAt": "2024-12-30T02:21:12.667Z"
}