I am trying to build an application that plays Spotify songs, among other features. I am well aware that the Spotify API doesn't provide web access to full tracks on desktop. However, I'd still like to explore other workarounds or options. My web app is built on Python and Javascript, so any solution would have to work with those. However if you know of any solutions in other languages, feel free to post those as well. Here are the things I'd like to try before giving up:
Are there any unofficial APIs that provide access to full length tracks? For example, I found this guy https://pyspotify.mopidy.com/en/latest/. Would that one or any other ones be viable to use? I know some of these become quickly deprecated as Spotify updates, but it's best to have something to play for now rather than nothing.
Hidden Spotify play button: Would there be a way for me to embed the play button next to each track's name as a hidden element, and then when I click on my own play button an event is triggered that "clicks" the Spotify play button? I would maybe trigger a click event on the div that the Spotify button is stored in, or have the browser detect its coordinates and click on it. If this seems like a viable option, how would that code even look?
Play track directly to Spotify: I would definitely be ok with clicking on a track and have it play on the user's desktop client or web player. I've been using an app called Unision that does just that. When you try to play a Spotify song, it opens up my desktop Spotify and begins playing the song automatically. If they did it, then there must be a way. How would that solution look like?
Any feedback would be greatly appreciated.
Thank you for reading my post.