Browse docs and collections
Overview
songs / #145
Component variants
Medium
I Honestly Love You
· 8 min
Small
I Honestly Love You Related
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/145" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/145" ); 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/145"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/145"
)
song = res.json() Response
{
"id": 145,
"albumId": 15,
"artistId": 6,
"title": "I Honestly Love You",
"slug": "i-honestly-love-you-145",
"trackNumber": 2,
"durationSeconds": 450,
"isExplicit": false,
"playCount": 3171945,
"createdAt": "2024-03-12T23:13:59.593Z"
}