YouTube Streaming API does not return results

I use the Google API Google API ( alternate ) to search for streaming information.

No matter what I put in the various fields of the "Filter" ( id, broadcastStatus, mine), I always return something like

{
    "kind": "youtube#liveBroadcastListResponse",
    "etag": "\"sGDdEsjSJ_SnACpEvVQ6MtTzkrI/1a_a-Wfcf01HR1raH5I2Na5kI1o\"",
    "pageInfo": {
        "totalResults": 0,
        "resultsPerPage": 5
    },
    "items": [
    ]
} // (The etag changes each time)

This seems ridiculous, given that someone is showing a stream somewhere .

It makes sense that it mine=truedoes not return any results, because I never broadcast anything, but I broadcastStatus=allhave to give me something.

What is going wrong?

0
source share
1 answer

, , , , broadcastType.

:

all – Return all broadcasts.
event – Return only scheduled event broadcasts.
persistent – Return only persistent broadcasts.

https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/list

, :

https://www.googleapis.com/youtube/v3/liveBroadcasts?part=id&mine=true&broadcastType=all
+1

Source: https://habr.com/ru/post/1605637/


All Articles