curl -sS \
"https://example-data.com/api/v1/songs/212" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/212"
);
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/212"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/212"
)
song = res.json() {
"id": 212,
"albumId": 20,
"artistId": 8,
"title": "The Sign",
"slug": "the-sign-212",
"trackNumber": 13,
"durationSeconds": 228,
"isExplicit": false,
"playCount": 25014696,
"createdAt": "2023-02-07T04:27:56.860Z"
}