curl -sS \
"https://example-data.com/api/v1/songs/239" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/239"
);
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/239"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/239"
)
song = res.json() {
"id": 239,
"albumId": 22,
"artistId": 9,
"title": "Bleeding Love",
"slug": "bleeding-love-239",
"trackNumber": 14,
"durationSeconds": 443,
"isExplicit": false,
"playCount": 668159,
"createdAt": "2025-10-05T02:57:29.485Z"
}