songs / #229
Component variants
Related
curl -sS \
"https://example-data.com/api/v1/songs/229" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/229"
);
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/229"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/229"
)
song = res.json() {
"id": 229,
"albumId": 22,
"artistId": 9,
"title": "That's the Way (I Like It)",
"slug": "thats-the-way-i-like-it-229",
"trackNumber": 4,
"durationSeconds": 268,
"isExplicit": false,
"playCount": 15223734,
"createdAt": "2023-08-15T22:16:35.421Z"
}