songs / #3
Component variants
Related
References
curl -sS \
"https://example-data.com/api/v1/songs/3" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/3"
);
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/3"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/3"
)
song = res.json() {
"id": 3,
"albumId": 1,
"artistId": 1,
"title": "You Make Me Feel Brand New",
"slug": "you-make-me-feel-brand-new-3",
"trackNumber": 3,
"durationSeconds": 237,
"isExplicit": false,
"playCount": 20796294,
"createdAt": "2022-06-12T10:52:12.356Z"
}