Proxy for reading publicly-accessible data from Spotify, without distributing tokens.
Due to the nature of the APIs, only GET
calls are supported.
On an incoming request, we request an access token from spotify, and append it to the request, before sending it on to spotifys standard API.
So I don't have to handle hosting application costs of this, you will need to host an instance of this yourselves.
Create an application at https://developer.spotify.com/my-applications/, and create a client ID and secret
export SPOTIFY_CLIENT_ID="..."
export SPOTIFY_CLIENT_SECRET="..."
python3 ./src/app.py
Simply change the https://api.spotify.com
with your instance URL. eg https://your.spotify.proxy.com/v1/users/{user_id}/playlists/{playlist_id}