Answer the question
In order to leave comments, you need to log in
How to get information about the status of an online stream on a YouTube channel while spending the minimum number of request quotas?
Good afternoon.
There is a task to receive information about the beginning of a new broadcast on several different YouTube channels. This is currently implemented via a GET request with a search method that weighs 100 quota units. The quota limit per day is 10000, so for five channels you can send such requests no more than once per hour.
Request by search method (only one Channel ID can be passed):
https://www.googleapis.com/youtube/v3/search?part=snippet&channelId='.$channelId.'&type=video&key='.$key.'&fields=items(id(videoId),snippet(liveBroadcastContent))&eventType=live
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question