Browse docs and collections
Overview
songs / #2291
Component variants
Medium
The Tide is High
· 8 min
Small
The Tide is High Related
References
Request
curl example
curl -sS \ "https://example-data.com/api/v1/songs/2291" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/songs/2291" ); 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/2291"
);
const song = (await res.json()) as Song; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/songs/2291"
)
song = res.json() Response
{
"id": 2291,
"albumId": 216,
"artistId": 76,
"title": "The Tide is High",
"slug": "the-tide-is-high-2291",
"trackNumber": 5,
"durationSeconds": 463,
"isExplicit": false,
"playCount": 40649558,
"createdAt": "2022-08-17T01:05:41.744Z"
}