Browse docs and collections
Overview
songs / #2453
Component variants
Medium
Get Off of My Cloud
· 4 min
Small
Get Off of My Cloud Related
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/2453" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/2453" ); 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/2453"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/2453"
)
song = res.json() Response
{
"id": 2453,
"albumId": 233,
"artistId": 83,
"title": "Get Off of My Cloud",
"slug": "get-off-of-my-cloud-2453",
"trackNumber": 1,
"durationSeconds": 228,
"isExplicit": true,
"playCount": 5618143,
"createdAt": "2022-09-24T06:06:47.004Z"
}