Constans totidem
2024
soulcountry
Overview
albums / #3
2024
Constans totidem
2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/albums/3" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/albums/3" ); 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/3"
);
const album = (await res.json()) as Album; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/albums/3"
)
album = res.json() Response
{
"id": 3,
"artistId": 2,
"title": "Constans totidem",
"slug": "constans-totidem-3",
"releaseDate": "2024-09-17",
"trackCount": 14,
"durationSeconds": 5561,
"genres": [
"soul",
"country"
],
"coverUrl": "https://picsum.photos/seed/album-3/500/500",
"createdAt": "2023-10-15T23:31:07.648Z"
}