Cohors defero dicta unus
1997
jazz
Overview
albums / #151
1997
Request
curl example
curl -sS \ "https://example-data.com/api/v1/albums/151" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/albums/151" ); 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/151"
);
const album = (await res.json()) as Album; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/albums/151"
)
album = res.json() Response
{
"id": 151,
"artistId": 53,
"title": "Cohors defero dicta unus",
"slug": "cohors-defero-dicta-unus-151",
"releaseDate": "1997-02-10",
"trackCount": 13,
"durationSeconds": 4445,
"genres": [
"jazz"
],
"coverUrl": "https://picsum.photos/seed/album-151/500/500",
"createdAt": "2024-04-28T14:21:33.674Z"
}