Absens
2001
countrysoulmetal
Overview
albums / #239
2001
Absens
2001
Request
curl example
curl -sS \ "https://example-data.com/api/v1/albums/239" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/albums/239" ); 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/239"
);
const album = (await res.json()) as Album; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/albums/239"
)
album = res.json() Response
{
"id": 239,
"artistId": 84,
"title": "Absens",
"slug": "absens-239",
"releaseDate": "2001-08-06",
"trackCount": 9,
"durationSeconds": 1144,
"genres": [
"country",
"soul",
"metal"
],
"coverUrl": "https://picsum.photos/seed/album-239/500/500",
"createdAt": "2023-11-07T00:30:01.884Z"
}