Perspiciatis contra arma
2001
countrysoulrock
Overview
albums / #255
2001
Request
curl example
curl -sS \ "https://example-data.com/api/v1/albums/255" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/albums/255" ); 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/255"
);
const album = (await res.json()) as Album; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/albums/255"
)
album = res.json() Response
{
"id": 255,
"artistId": 90,
"title": "Perspiciatis contra arma",
"slug": "perspiciatis-contra-arma-255",
"releaseDate": "2001-11-04",
"trackCount": 13,
"durationSeconds": 2019,
"genres": [
"country",
"soul",
"rock"
],
"coverUrl": "https://picsum.photos/seed/album-255/500/500",
"createdAt": "2023-08-14T07:16:06.735Z"
}