mirror of
https://github.com/Dvorinka/SpotifyRecAlg.git
synced 2026-06-03 20:13:03 +00:00
Music Unlocker
Auth-free music metadata service using swingmusic's reverse-engineered clients.
What it does
- Uses TOTP with hardcoded secret (same as official Spotify Web Player)
- No user authentication required
- Gets track/album/playlist metadata from Spotify
- Cross-platform links via Song.link API
Run
cd apps/unlocker
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python main.py
Service runs on port 5000.
Endpoints
POST /parse- Parse any music URLGET /spotify/track/<id>- Get track metadataGET /spotify/album/<id>- Get album with tracksGET /spotify/playlist/<id>- Get playlist with tracksPOST /spotify/search- Search tracksGET /links/<spotify_id>- Get cross-platform linksPOST /import- Import from any URL (universal)
Integration with Go backend
The Go backend can call this service when SPOTIFY_CLIENT_ID is not set.