Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

YouTube API to get the health status of live stream

$
0
0

I am trying to use YouTube Livestreaming API to get the health status of my live stream with partial success. It returns the following response when the stream is down and occasionally when the stream is up and doing fine. Why the search is returning an empty result when the streaming is fine? How to remove this ambiguity?

URL USED

https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=[Channel ID]&eventType=live&type=video&key=[API KEY]

RESPONSE SAMPLE WHEN STREAM IS DOWN

{"kind": "youtube#searchListResponse","etag": "vEIIB8AX6b5gvXSmMAHIm1mm2t8","regionCode": "BR","pageInfo": {"totalResults": 0,"resultsPerPage": 0  },"items": []}

Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>