I wrote SpotAPI at 16. Two years later, I used it to connect Daft Punk to The Weeknd.

Wait 5 sec.

Thomas Bangalter produced “One More Time” and co-wrote “Starboy.” I gave a Python script three Spotify tracks, and it showed me where his name appeared and what he did on each one. I first shared SpotAPI on r/Python when I was 16. Someone asked what I could actually build with it that I couldn’t already do with Spotipy. Two years later, SpotAPI 2 is on PyPI, and these are the examples I wish I’d had back then: Credit Trail finds people who worked on multiple songs, even when their roles change. It matches contributor IDs, so two people with the same name don’t get lumped together. Mix Map takes a public playlist and finds tracks with compatible keys and tempos. My test run found 25 possible transitions across 40 tracks, with the tempo adjustment printed for each pair. Studio lets you jump from a track to its artist or album, open the data behind the view, and click a timed lyric to seek on a connected Spotify player. The clip shows the quickest way to try it. This works on Python 3.11+ without a Spotify login or developer key: bash pip install spotapi spotapi search "Daft Punk" If you write Python, the results are typed. You can read track.bpm and track.camelot_key when Spotify supplies them. Spotipy uses Spotify’s official Web API. SpotAPI uses unofficial endpoints, so Spotify changes can break features. Playback controls an existing Spotify device. GitHub and Studio demo · Credit Trail script · My original r/Python post Give me two tracks that sound like they have nothing in common. I’ll run a few pairs and reply with what the credits turn up.   submitted by   /u/Major-Ad-4196 [link]   [comments]