curl -sS \
"https://example-data.com/api/v1/songs/183" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/183"
);
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/183"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/183"
)
song = res.json() {
"id": 183,
"albumId": 18,
"artistId": 7,
"title": "Endless Love",
"slug": "endless-love-183",
"trackNumber": 6,
"durationSeconds": 317,
"isExplicit": false,
"playCount": 38143434,
"createdAt": "2026-02-28T05:15:27.691Z"
}