Browse docs and collections
Overview
songs / #363
Component variants
Medium
Baby Come Back
· 3 min
Small
Baby Come Back Related
References
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/363" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/363" ); 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/363"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/363"
)
song = res.json() Response
{
"id": 363,
"albumId": 33,
"artistId": 15,
"title": "Baby Come Back",
"slug": "baby-come-back-363",
"trackNumber": 11,
"durationSeconds": 191,
"isExplicit": false,
"playCount": 9009730,
"createdAt": "2023-08-08T22:14:00.630Z"
}