Browse docs and collections
Overview
songs / #2525
Component variants
Medium
Come On Eileen
· 3 min
Small
Come On Eileen Related
References
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/2525" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/2525" ); 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/2525"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/2525"
)
song = res.json() Response
{
"id": 2525,
"albumId": 239,
"artistId": 84,
"title": "Come On Eileen",
"slug": "come-on-eileen-2525",
"trackNumber": 7,
"durationSeconds": 164,
"isExplicit": true,
"playCount": 39725533,
"createdAt": "2023-02-22T16:34:06.133Z"
}