curl -sS \
"https://example-data.com/api/v1/songs/78" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/78"
);
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/78"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/78"
)
song = res.json() {
"id": 78,
"albumId": 8,
"artistId": 3,
"title": "Crocodile Rock",
"slug": "crocodile-rock-78",
"trackNumber": 11,
"durationSeconds": 121,
"isExplicit": false,
"playCount": 41183046,
"createdAt": "2025-01-25T05:00:58.690Z"
}