curl -sS \
"https://example-data.com/api/v1/songs/197" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/197"
);
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/197"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/197"
)
song = res.json() {
"id": 197,
"albumId": 19,
"artistId": 8,
"title": "Physical",
"slug": "physical-197",
"trackNumber": 8,
"durationSeconds": 427,
"isExplicit": false,
"playCount": 48236022,
"createdAt": "2025-12-06T20:09:11.726Z"
}