Browse docs and collections
Overview
songs / #311
Component variants
Medium
I Think I Love You
· 8 min
Small
I Think I Love You Related
References
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/311" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/311" ); 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/311"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/311"
)
song = res.json() Response
{
"id": 311,
"albumId": 29,
"artistId": 14,
"title": "I Think I Love You",
"slug": "i-think-i-love-you-311",
"trackNumber": 4,
"durationSeconds": 452,
"isExplicit": true,
"playCount": 30608125,
"createdAt": "2024-06-09T15:48:06.108Z"
}