songs / #30
Component variants
Related
curl -sS \
"https://example-data.com/api/v1/songs/30" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/30"
);
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/30"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/30"
)
song = res.json() {
"id": 30,
"albumId": 4,
"artistId": 2,
"title": "Why Do Fools Fall in Love?",
"slug": "why-do-fools-fall-in-love-30",
"trackNumber": 6,
"durationSeconds": 349,
"isExplicit": true,
"playCount": 768159,
"createdAt": "2022-12-21T23:00:28.336Z"
}