Browse docs and collections
Overview
songs / #835
Component variants
Medium
Just the Way You Are
· 6 min
Small
Just the Way You Are Related
References
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/835" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/835" ); 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/835"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/835"
)
song = res.json() Response
{
"id": 835,
"albumId": 78,
"artistId": 31,
"title": "Just the Way You Are",
"slug": "just-the-way-you-are-835",
"trackNumber": 11,
"durationSeconds": 375,
"isExplicit": false,
"playCount": 37801765,
"createdAt": "2022-03-24T17:27:49.151Z"
}