example-data.com
Menu
Browse docs and collections

Overview

albums / #282

Conduco curso absens a

Conduco curso absens a

2013

reggaeclassicalfolk

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 282,
  "artistId": 100,
  "title": "Conduco curso absens a",
  "slug": "conduco-curso-absens-a-282",
  "releaseDate": "2013-03-04",
  "trackCount": 15,
  "durationSeconds": 1830,
  "genres": [
    "reggae",
    "classical",
    "folk"
  ],
  "coverUrl": "https://picsum.photos/seed/album-282/500/500",
  "createdAt": "2024-08-14T17:34:56.744Z"
}