Browse docs and collections
Overview
songs / #1590
Component variants
Medium
So Much in Love
· 5 min
Small
So Much in Love Related
References
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/1590" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/1590" ); 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/1590"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/1590"
)
song = res.json() Response
{
"id": 1590,
"albumId": 152,
"artistId": 54,
"title": "So Much in Love",
"slug": "so-much-in-love-1590",
"trackNumber": 3,
"durationSeconds": 310,
"isExplicit": true,
"playCount": 11194782,
"createdAt": "2022-08-29T13:16:46.283Z"
}