Browse docs and collections
Overview
songs / #2527
Component variants
Medium
Third Man Theme
· 6 min
Small
Third Man Theme Related
References
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/2527" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/2527" ); 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/2527"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/2527"
)
song = res.json() Response
{
"id": 2527,
"albumId": 239,
"artistId": 84,
"title": "Third Man Theme",
"slug": "third-man-theme-2527",
"trackNumber": 9,
"durationSeconds": 363,
"isExplicit": false,
"playCount": 47376158,
"createdAt": "2024-06-23T13:13:49.357Z"
}