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
- Host: GitHub
- URL: https://github.com/realorangeone/spotify-public-proxy
- Owner: RealOrangeOne
- License: bsd-3-clause
- Created: 2017-10-13T17:03:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-21T12:05:35.000Z (over 2 years ago)
- Last Synced: 2025-04-07T15:57:00.615Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 50.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spotify Public Proxy

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}`