example-data.com
Menu
Browse docs and collections

Overview

albums / #149

At attero aiunt

At attero aiunt

2015

metaljazz

Component variants

Related

Referenced by

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/albums/149" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/albums/149"
);
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/149"
);
const album = (await res.json()) as Album;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/albums/149"
)
album = res.json()

Response

{
  "id": 149,
  "artistId": 52,
  "title": "At attero aiunt",
  "slug": "at-attero-aiunt-149",
  "releaseDate": "2015-05-21",
  "trackCount": 13,
  "durationSeconds": 3522,
  "genres": [
    "metal",
    "jazz"
  ],
  "coverUrl": "https://picsum.photos/seed/album-149/500/500",
  "createdAt": "2024-12-17T18:19:35.177Z"
}