Browse docs and collections
Overview
songs / #901
Component variants
Medium
I Think I Love You
· 7 min
Small
I Think I Love You Related
References
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/901" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/901" ); 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/901"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/901"
)
song = res.json() Response
{
"id": 901,
"albumId": 86,
"artistId": 34,
"title": "I Think I Love You",
"slug": "i-think-i-love-you-901",
"trackNumber": 5,
"durationSeconds": 404,
"isExplicit": false,
"playCount": 6840733,
"createdAt": "2022-07-10T21:40:55.699Z"
}