Closed lwansbrough closed 10 years ago
Current recommended practice is to poll the API to check if streams are online. Webhooks are complex, and unlikely to be supported any time in the near future.
Is there a batch endpoint? If not then should I be concerned about rate limiting?
You can provide multiple channels like so https://api.twitch.tv/kraken/streams?channel=riotgames,dota2ti,machinima,esltv_hearthstone
. We don't rate limit, but if we notice excessive usage we'll contact you and ask you to stop.
Great, thanks!
Is there a limit to number of channels you can provide via this method? What if we had 1000 channels to batch, would that be a problem?
Looks like its paged based on 'limit', chunks of 100 being the max.
Are webhooks still not planned? They tend to be more efficient on the server and less of a headache for users.
Services like Curse (who now OWN you guys), Slack, and Discord could all benefit from Webhook support.
Webhooks would make everything a lot easier indeed.
man, no webhooks, is this 2009?
Is there any update as the issue is now over 3 years old and webhooks are still highly relevant?
up
This repository isn't used anymore. Should use the dev forums instead.
And here is a relevant thread from Februrary '15. There are still no plans to implement it.
i stopped using twitch altogether because of this ;)
Nvm its stupid, we'll keep spamming api calls just to test a truthy value. Gj twitch. Scaling at his finest.
Knowing when a user goes online is a big deal, and it doesn't look like the API has this ability yet. It would be great to have an endpoint that we could POST a webhook URL to, which would return us the current state of whatever we're requesting as well as a promise to post updates to the webhook URL for X amount of time (say... 30 days).
For example, if we could
Twitch would then respond something like this:
T'would be nice.