Browse docs and collections
Overview
songs / #502
Component variants
Medium
This Ole House
· 2 min
Small
This Ole House Related
References
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/502" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/502" ); 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/502"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/502"
)
song = res.json() Response
{
"id": 502,
"albumId": 47,
"artistId": 19,
"title": "This Ole House",
"slug": "this-ole-house-502",
"trackNumber": 9,
"durationSeconds": 97,
"isExplicit": false,
"playCount": 27528891,
"createdAt": "2025-01-23T08:48:51.847Z"
}