songs / #102
Component variants
Related
References
curl -sS \
"https://example-data.com/api/v1/songs/102" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/102"
);
const song = await res.json();import type { Song } from "https://example-data.com/types/songs.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/songs/102"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/102"
)
song = res.json() {
"id": 102,
"albumId": 10,
"artistId": 5,
"title": "Indian Reservation (The Lament Of The Cherokee Reservation Indian)",
"slug": "indian-reservation-the-lament-of-the-cherokee-reservation-indian-102",
"trackNumber": 12,
"durationSeconds": 211,
"isExplicit": false,
"playCount": 29104088,
"createdAt": "2023-11-12T21:12:36.955Z"
}