I run Ludum Dare. We’re an online game development jam event that sees a few hundred user streams for our ‘game’ (“Ludum Dare”) pop up during our events. We have a custom widget on our website that shows the top 4+ streams at once (soon to be more), but we have some popular streamers that participate in our event (Notch, Quill18), and it frustrates our users that all the top spots go to them. I’d like to provide a way to view random streams in our widget, but currently there’s no way to make such a request to the API. I’m only able to request the top results.
I am facing the same issue with a different request that I am making. The way I solve it is through a cronjob script. Every 5-10 mins I check which streams are online and write that into a db. Later on I do the selection thingy. Other than that, I don’t think that there is currently a way to do what you want. I could be wrong though!
Hi PoV! We actually do have a random streams API call which is currently in beta (so there’s no guarantee it will be supported indefinitely). It’s at https://api.twitch.tv/kraken/beta/streams/random. Feel free to use it, and let me know if you encounter any problems!