songs / #130
Component variants
Related
References
curl -sS \
"https://example-data.com/api/v1/songs/130" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/130"
);
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/130"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/130"
)
song = res.json() {
"id": 130,
"albumId": 13,
"artistId": 6,
"title": "Stormy Weather (Keeps Rainin' All the Time)",
"slug": "stormy-weather-keeps-rainin-all-the-time-130",
"trackNumber": 4,
"durationSeconds": 192,
"isExplicit": false,
"playCount": 38361842,
"createdAt": "2021-12-09T09:41:43.765Z"
}