Close

1-17-22 - Spotify API

A project log for Working "Teeny-Tiny Turntable"

Converting a "Teeny-Tiny Turntable" kit into a working music player using a Raspberry Pi Zero and the power of NFC

idrees-hassanIdrees Hassan 01/18/2022 at 05:040 Comments

Was able to start messing with the Spotify API today by following this tutorial on grabbing the refresh token. The API seems pretty simple, though it took me some time figuring out how to work node's https library now that request is deprecated. Didn't get a chance yet to mess with the set playback endpoints, but it was super cool being able to see what music I was listening to on my personal account through the API. Fun fact: if you try and use the "/v1/me/player/currently-playing" endpoint while the user is in a private listening session, you'll receive a 204 status response which is pretty neat.

Discussions