An open API service indexing awesome lists of open source software.

https://github.com/realorangeone/spotify-public-proxy

Limited proxy to spotifys public api without authenticaton
https://github.com/realorangeone/spotify-public-proxy

Last synced: 5 months ago
JSON representation

Limited proxy to spotifys public api without authenticaton

Awesome Lists containing this project

README

          

# Spotify Public Proxy

![CI](https://github.com/RealOrangeOne/website/workflows/CI/badge.svg)

Proxy for reading publicly-accessible data from Spotify, without distributing tokens.

## Supported APIs
Due to the nature of the APIs, only `GET` calls are supported.

## How it works
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.

## Usage
### Host it yourself
So I don't have to handle hosting application costs of this, you will need to host an instance of this yourselves.

### Create a spotify application to get required tokens
Create an application at https://developer.spotify.com/my-applications/, and create a client ID and secret
### Setup tokens
```bash
export SPOTIFY_CLIENT_ID="..."
export SPOTIFY_CLIENT_SECRET="..."
```
### Start the server

python3 ./src/app.py

### Send a request
Simply change the `https://api.spotify.com` with your instance URL. eg `https://your.spotify.proxy.com/v1/users/{user_id}/playlists/{playlist_id}`