[CustomAPI] Spotify - Now Playing


You can go to https://developer.spotify.com/console/get-users-currently-playing-track/
and select GET TOKEN
then on the window that appears check user-read-currently-playing
and generate your token - add it to the end of the URL and you can use it as such:

!addcom !whatsong $(customapi https://isso.pro/thelab/spotify-now-playing.php?token=XXXXXXXXX)


Spotify access tokens seem to expire after an hour, so this most likely would not work long term.


I did end up realizing that the tokens are very short term and already started working on a fix.