Music
List remembered songs
GET
/api/songsOpen. Open to everyone who can reach Tempolight.
Song memory: songs Tempolight has analysed, learned from Spotify or got from the shared beat-map service.
Responses
200OKapplication/json
object[]
idstringm…
namestringbpmnumberdurnumberSeconds.
stylestringdropsintegerHow many drops.
atnumberWhen it was remembered (ms).
spotifyIdstringsrcstringOne of
"learned" "shared" "spotify-analysis"coverintegerPercent learned, for a partly learned song.
Request
curl 'http://localhost:8080/api/songs'const res = await fetch("http://localhost:8080/api/songs");
const data = await res.json();
console.log(data);import requests
res = requests.get(
"http://localhost:8080/api/songs",
)
print(res.json())Response
[
{
"id": "m9x2q1",
"name": "One More Time",
"bpm": 122.7,
"dur": 320.4,
"style": "party",
"drops": 3,
"at": 1762200000000
}
]