curl -sS \
"https://example-data.com/api/v1/songs/99" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/99"
);
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/99"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/99"
)
song = res.json() {
"id": 99,
"albumId": 10,
"artistId": 5,
"title": "Honky Tonk",
"slug": "honky-tonk-99",
"trackNumber": 9,
"durationSeconds": 119,
"isExplicit": false,
"playCount": 15003866,
"createdAt": "2021-07-27T19:00:56.203Z"
}