4 ms·
> Using the Spotify API you can find random music, [...] Which API endpoint do you use for this?
by SushiHippie 2y ago
> Using the Spotify API you can find random music, [...]
Which API endpoint do you use for this?
- 65 2y agoThere is no endpoint for random tracks. The method I found that works the best is to search for two random letters, e.g. "fq", pick a random result, and then use the API to find recommendations based on that track that have a minimum instrumentalness of, say 0.9, then pick a random recommendation from the results. I store all the songs that have been added to the playlist in a DynamoDB database and make sure no song gets added twice.