Getting a random track/ generating a valid random track ID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to create a tool that generates a truly random Spotify song, but cannot find out how this could be done. I've considered two possible approaches, which come with the following questions:
1. Is there/will there be a way of getting a random track from the API? I went through the reference, and using the "Get Recommendations" call from the browse API with random genre seeds seemed the most promising, but as the documentation states, it does not handle obscure music well.
2. Another approach would be to generate a random track ID on the application side, then use a get requests for that track. However, I cannot seem to find a pattern for the track IDs that would allow me to generate a random valid one. Are the track IDs simply randomly generated, with no way to reproduce them? Or is there a way to consistently generate valid track IDs?
Any help would be appreciated.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page