Browse docs and collections
Overview
songs / #1048
Component variants
Related
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/1048" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/1048" ); 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/1048"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/1048"
)
song = res.json() Response
{
"id": 1048,
"albumId": 100,
"artistId": 39,
"title": "Before The Next Teardrop Falls",
"slug": "before-the-next-teardrop-falls-1048",
"trackNumber": 11,
"durationSeconds": 207,
"isExplicit": true,
"playCount": 21485443,
"createdAt": "2025-09-24T09:06:15.791Z"
}