example-data.com
Menu
Browse docs and collections

Overview

albums / #67

Cresco abduco

Cresco abduco

2001

r&b

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 67,
  "artistId": 27,
  "title": "Cresco abduco",
  "slug": "cresco-abduco-67",
  "releaseDate": "2001-07-11",
  "trackCount": 9,
  "durationSeconds": 1699,
  "genres": [
    "r&b"
  ],
  "coverUrl": "https://picsum.photos/seed/album-67/500/500",
  "createdAt": "2023-07-25T19:10:21.111Z"
}