Is there a way to make a single request to get all of the live broadcasts for all the accounts underneath a specified CMS?
I can use the following URL and query params to get the broadcast status of a single channel, but I would like to see a list of all of them without having to loop through every Channel_ID
URL: https://www.googleapis.com/youtube/v3/liveBroadcastsQuery params:{"part" "id,snippet""broadcastStatus" "active""onBehalfOfContentOwner" "{{CMS_CHANNEL_NAME}}""onBehalfOfContentOwnerChannel" "{{CHANNEL_ID}}"Alternatively, I've tried to use https://www.googleapis.com/youtube/v3/search to try and get a list of all our related videos and filter based on snippet -> liveBroadcastContent == "live"
{"part" "id,snippet""type" "video""onBehalfOfContentOwner" "{{CMS_CHANNEL_NAME}}""forContentOwner" true"maxResult" 50}The search endpoint also works with getting all live eventTypes
{"part" "id,snippet""eventType" "live""type" "video""maxResults" 50}But if I try to combine and filter to live eventTypes with forContentOwner I get this following error:
{:error {:code 400, :message "Request contains an invalid argument.", :errors [{:message "Request contains an invalid argument.", :domain "global", :reason "badRequest"}], :status "INVALID_ARGUMENT"}}Is there a better way of checking if the channels under a specified CMS are currently live streaming than the two options above without as much back end logic and a whole lot more requests?
I have tried using https://www.googleapis.com/youtube/v3/liveBroadcasts and https://www.googleapis.com/youtube/v3/search endpoints to retrieve all live streaming channels under a given CMS, but was unable to set up the filters in a way that it gave me the list I'm looking for.