A maiores
2010
metaljazzcountry
Overview
albums / #154
2010
A maiores
2010
Request
curl example
curl -sS \ "https://example-data.com/api/v1/albums/154" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/albums/154" ); 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/154"
);
const album = (await res.json()) as Album; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/albums/154"
)
album = res.json() Response
{
"id": 154,
"artistId": 54,
"title": "A maiores",
"slug": "a-maiores-154",
"releaseDate": "2010-05-01",
"trackCount": 14,
"durationSeconds": 3167,
"genres": [
"metal",
"jazz",
"country"
],
"coverUrl": "https://picsum.photos/seed/album-154/500/500",
"createdAt": "2024-06-08T22:45:03.964Z"
}