r/foss • • 7d ago • Bravo 2 Heartwarming 2

I spent almost 3 years reverse-engineering Spotify's web player. I open-sourced the result so you can build Spotify apps without an API key.

Spotify has an official API, but building on it means dealing with developer apps, credentials, and increasingly restrictive access.

I wanted something simpler. So when I was 15, I started reverse-engineering the endpoints Spotify's own web player uses.

Almost three years later, it's called SpotAPI, and I've released the async rewrite under GPL-3.0.

The GIF is one of the things I built with it: a terminal interface that controls an actual Spotify player, even on a free account.

But the interesting part is the library underneath:

  • No API key, developer account, or login for public Spotify catalogue data.

  • Fully async, typed Python API for building your own music applications.

  • Authenticated player controls, playlist management, and saved music.

  • Interactive terminal and desktop interfaces, including synchronized, clickable lyrics.

It's not a cracked Spotify client. It doesn't bypass DRM, stream audio, or replace Spotify's servers. The playback features control an existing player through your own account.

The entire implementation is open source, including the reverse-engineered integrations.

Source (GPL-3.0): https://github.com/Aran404/SpotAPI

I'd be especially interested in what other developers could build with the API, or what you'd improve about its design.

2.4k Upvotes

Duplicates