example-data.com
Menu
Browse docs and collections

Overview

albums / #15

Minima somnus depopulo

Minima somnus depopulo

2002

pophip-hoppunk

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 15,
  "artistId": 6,
  "title": "Minima somnus depopulo",
  "slug": "minima-somnus-depopulo-15",
  "releaseDate": "2002-05-15",
  "trackCount": 8,
  "durationSeconds": 1283,
  "genres": [
    "pop",
    "hip-hop",
    "punk"
  ],
  "coverUrl": "https://picsum.photos/seed/album-15/500/500",
  "createdAt": "2024-12-07T13:31:28.901Z"
}