curl -sS \
"https://example-data.com/api/v1/songs/198" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/198"
);
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/198"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/198"
)
song = res.json() {
"id": 198,
"albumId": 19,
"artistId": 8,
"title": "I Got You (I Feel Good)",
"slug": "i-got-you-i-feel-good-198",
"trackNumber": 9,
"durationSeconds": 342,
"isExplicit": false,
"playCount": 36516891,
"createdAt": "2023-01-04T23:19:15.905Z"
}