Browse docs and collections
Overview
songs / #1486
Component variants
Medium
I Believe I Can Fly
· 4 min
Small
I Believe I Can Fly Related
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/1486" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/1486" ); 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/1486"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/1486"
)
song = res.json() Response
{
"id": 1486,
"albumId": 142,
"artistId": 51,
"title": "I Believe I Can Fly",
"slug": "i-believe-i-can-fly-1486",
"trackNumber": 4,
"durationSeconds": 222,
"isExplicit": false,
"playCount": 13649500,
"createdAt": "2022-12-13T16:13:53.582Z"
}