Cuius capillus
2011
hip-hoprockcountry
Overview
albums / #253
2011
Cuius capillus
2011
Request
curl example
curl -sS \ "https://example-data.com/api/v1/albums/253" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/albums/253" ); 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/253"
);
const album = (await res.json()) as Album; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/albums/253"
)
album = res.json() Response
{
"id": 253,
"artistId": 89,
"title": "Cuius capillus",
"slug": "cuius-capillus-253",
"releaseDate": "2011-11-12",
"trackCount": 6,
"durationSeconds": 1273,
"genres": [
"hip-hop",
"rock",
"country"
],
"coverUrl": "https://picsum.photos/seed/album-253/500/500",
"createdAt": "2024-11-29T18:39:45.880Z"
}