curl -sS \
"https://example-data.com/api/v1/songs/120" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/songs/120"
);
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/120"
);
const song = (await res.json()) as Song;import requests
res = requests.get(
"https://example-data.com/api/v1/songs/120"
)
song = res.json() {
"id": 120,
"albumId": 12,
"artistId": 5,
"title": "Rapture",
"slug": "rapture-120",
"trackNumber": 5,
"durationSeconds": 469,
"isExplicit": false,
"playCount": 11327527,
"createdAt": "2022-05-09T20:22:37.026Z"
}