example-data.com
Menu
Browse docs and collections

Overview

albums / #133

Derideo

Derideo

2014

rock

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 133,
  "artistId": 49,
  "title": "Derideo",
  "slug": "derideo-133",
  "releaseDate": "2014-01-21",
  "trackCount": 8,
  "durationSeconds": 1544,
  "genres": [
    "rock"
  ],
  "coverUrl": "https://picsum.photos/seed/album-133/500/500",
  "createdAt": "2024-07-12T11:27:46.021Z"
}