Cultellus
1998
punkjazzclassical
Overview
albums / #275
1998
Cultellus
1998
Request
curl example
curl -sS \ "https://example-data.com/api/v1/albums/275" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/albums/275" ); 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/275"
);
const album = (await res.json()) as Album; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/albums/275"
)
album = res.json() Response
{
"id": 275,
"artistId": 96,
"title": "Cultellus",
"slug": "cultellus-275",
"releaseDate": "1998-05-24",
"trackCount": 7,
"durationSeconds": 2066,
"genres": [
"punk",
"jazz",
"classical"
],
"coverUrl": "https://picsum.photos/seed/album-275/500/500",
"createdAt": "2024-04-21T19:02:32.888Z"
}