We are seeing some delay in data updation in /stream/:channel API. Following is our usecase
Start streaming from OBS. Streaming is successful.
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.