curl -sS \
"https://example-data.com/api/v1/songs/77" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/77"
);
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/77"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/77"
)
song = res.json() {
"id": 77,
"albumId": 8,
"artistId": 3,
"title": "Get Back",
"slug": "get-back-77",
"trackNumber": 10,
"durationSeconds": 248,
"isExplicit": false,
"playCount": 30851773,
"createdAt": "2024-12-17T16:05:32.479Z"
}