curl -sS \
"https://example-data.com/api/v1/songs/75" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/75"
);
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/75"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/75"
)
song = res.json() {
"id": 75,
"albumId": 8,
"artistId": 3,
"title": "Beat It",
"slug": "beat-it-75",
"trackNumber": 8,
"durationSeconds": 101,
"isExplicit": false,
"playCount": 6396631,
"createdAt": "2021-11-28T07:03:58.164Z"
}