Browse docs and collections
Overview
songs / #1879
Component variants
Medium
(Sexual) Healing
· 2 min
Small
(Sexual) Healing Related
References
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/1879" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/1879" ); const song = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/songs.d.ts https://example-data.com/types/songs.d.ts
import type { Song } from "./types/songs";
const res = await fetch(
"https://example-data.com/api/v1/songs/1879"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/1879"
)
song = res.json() Response
{
"id": 1879,
"albumId": 179,
"artistId": 64,
"title": "(Sexual) Healing",
"slug": "sexual-healing-1879",
"trackNumber": 3,
"durationSeconds": 122,
"isExplicit": false,
"playCount": 28686446,
"createdAt": "2021-08-19T05:07:55.044Z"
}