News for hackers. Stuff that matters.
Re:Psst: Fast Spotify client with native GUI, without Electr... by soheilpro on Tuesday August 17, 2021 @12:08AM (#28206139)
This is great, but the sad truth is that unofficial clients like this can never grow big and support more than a few thousand users, given how ridiculously low Spotify API's rate limits are.

My project https://volt.fm has 100k+ users now and I'm really struggling with the Spotify API.

Re:Psst: Fast Spotify client with native GUI, without Electr... by tim-- on Tuesday August 17, 2021 @01:07AM (#28206415)
The trick would be to have each user register their own API key.
Re:Psst: Fast Spotify client with native GUI, without Electr... by ShroudedNight on Tuesday August 17, 2021 @02:05AM (#28206677)
This seems like such an obvious answer, why isn't it significantly more common?
Re:Psst: Fast Spotify client with native GUI, without Electr... by kzrdude on Tuesday August 17, 2021 @02:18AM (#28206744)
Because that will also self-select the audience to be really small.
Re:Psst: Fast Spotify client with native GUI, without Electr... by tim-- on Tuesday August 17, 2021 @02:30AM (#28206809)
No, not at all. There are ways to implement this without making it a requirement to use the app. For example, you implement a counter for each user of the app, so they can only use a subset of the API requests allowed for your application.

Then if they go over their allocated amount of calls, or they have been a user for X days/weeks/months, you give them a guided walkthrough on how to register their own API key.

Re:Psst: Fast Spotify client with native GUI, without Electr... by TchoBeer on Tuesday August 17, 2021 @09:26AM (#28209579)
I imagine for something like 90%+ of users, a popup that says "Your maximum number of API calls has been reached, click this link and register your own API key to continue using..." is an instant nope
Re:Psst: Fast Spotify client with native GUI, without Electr... by clashmeifyoucan on Tuesday August 17, 2021 @02:30AM (#28206814)
this, I wanted to make a little utility for getting lyrics for whatever song is currently playing on spotify[1] and ran into the issue for getting the song name without using the API since that's just inconvenient for the end user. The most popular such project does go that way though.[2]

I ended up writing a small library that does that locally cross-platform by using the metadata from the app.[3] The approach is probably not as robust as the API, but much faster and works well.

[1] https://github.com/SwagLyrics/SwagLyrics-For-Spotify

[2] https://github.com/johnwmillr/LyricsGenius

[3] https://github.com/SwagLyrics/SwSpotify

Re:Psst: Fast Spotify client with native GUI, without Electr... by OhNoMyqueen on Tuesday August 17, 2021 @06:42AM (#28208382)
The Spotify API doesn't support private API keys, so you need to create your own OAuth App and then authorize it for yourself.
Re:Psst: Fast Spotify client with native GUI, without Electr... by tiborsaas on Tuesday August 17, 2021 @01:46AM (#28206595)
Also, they can lock out out overnight and good luck appealing to the legal team.
Re:Psst: Fast Spotify client with native GUI, without Electr... by CamperBob2 on Tuesday August 17, 2021 @12:10AM (#28206152)
How does the nature of the API determine the number of users?
Re:Psst: Fast Spotify client with native GUI, without Electr... by soheilpro on Tuesday August 17, 2021 @12:33AM (#28206258)
I meant rate limits. Edited my original comment.