curl -sS \
"https://example-data.com/api/v1/songs/236" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/236"
);
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/236"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/236"
)
song = res.json() {
"id": 236,
"albumId": 22,
"artistId": 9,
"title": "Rapture",
"slug": "rapture-236",
"trackNumber": 11,
"durationSeconds": 188,
"isExplicit": false,
"playCount": 44586658,
"createdAt": "2025-05-19T00:05:53.646Z"
}