Delay in Stream API


We are seeing some delay in data updation in /stream/:channel API. Following is our usecase

  1. Start streaming from OBS. Streaming is successful.
  2. Use Twitch API /stream/:channel API to get the status.

Result , on first instance stream object is null. We need to keep polling to get the status , which is updated after a delay. Is there a way to get the status immediately?


No. All of the Twitch APIs have caching to some degree, so you will have to wait until the cache expires and is updated on the API. This is common across all of our API endpoints. A common pattern is: make a request, wait a few seconds, make a request, wait a few seconds, repeat.

Cool Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.