Browse docs and collections
Overview
songs / #2721
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/2721" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/2721" ); 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/2721"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/2721"
)
song = res.json() Response
{
"id": 2721,
"albumId": 259,
"artistId": 92,
"title": "I Think I Love You",
"slug": "i-think-i-love-you-2721",
"trackNumber": 5,
"durationSeconds": 479,
"isExplicit": false,
"playCount": 29630296,
"createdAt": "2021-06-17T18:30:30.850Z"
}