Webhooks Reference

Like I said, don’t request every 5 seconds. it’s pointless as you’re just getting the same cache back, and in some situations you can actually get odd results by polling that frequently because if a stream just goes live, you may get lucky on one request that says it’s live, but on the next request the stream may still show as offline as that cache server you hit didn’t have an up to date record. This means when you poll that excessively there’s a greater chance to flicker between versions of the cache until they reach consistency.

So like I said, poll once a minute, if there’s some error then handle the error and resend the request.

Webhooks can be the most ideal way to get stream status as it waits for consistency between the API servers before sending the notification. There is some delay, but they’re working to minimise it. If you must know exactly when a stream goes live, then neither polling the API or webhooks is the solution for you.