Browse docs and collections
Overview
songs / #2050
Component variants
Medium
I Feel For You
· 5 min
Small
I Feel For You Related
References
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/2050" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/2050" ); 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/2050"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/2050"
)
song = res.json() Response
{
"id": 2050,
"albumId": 193,
"artistId": 69,
"title": "I Feel For You",
"slug": "i-feel-for-you-2050",
"trackNumber": 9,
"durationSeconds": 306,
"isExplicit": false,
"playCount": 37757277,
"createdAt": "2022-06-01T11:44:43.190Z"
}