example-data.com
Menu
Browse docs and collections

Overview

albums / #259

Dedecor

Dedecor

2013

pop

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 259,
  "artistId": 92,
  "title": "Dedecor",
  "slug": "dedecor-259",
  "releaseDate": "2013-07-01",
  "trackCount": 10,
  "durationSeconds": 2031,
  "genres": [
    "pop"
  ],
  "coverUrl": "https://picsum.photos/seed/album-259/500/500",
  "createdAt": "2025-09-11T02:02:55.679Z"
}