Browse docs and collections
Overview
songs / #832
Component variants
Medium
Make Love to Me
· 2 min
Small
Make Love to Me Related
References
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/832" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/832" ); 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/832"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/832"
)
song = res.json() Response
{
"id": 832,
"albumId": 78,
"artistId": 31,
"title": "Make Love to Me",
"slug": "make-love-to-me-832",
"trackNumber": 8,
"durationSeconds": 126,
"isExplicit": false,
"playCount": 42314664,
"createdAt": "2023-12-26T21:36:27.474Z"
}