1

I have created a new google account, then I have enabled youtube live streaming and started to stream. I have app key and access token for my user, but http get request to https://www.googleapis.com/youtube/v3/liveStreams?part=snippet&access_token=MY_TOKEN&key=MY_KEY&mine=true is returning zero results, meanwhile at the moment I have live stream. What to do?

user2757853
  • 311
  • 1
  • 4
  • 7

2 Answers2

0

Try using LiveStreams.list instead. It returns a list of video streams that match the API request parameters. There's an example for your code reference.

ReyAnthonyRenacia
  • 17,219
  • 5
  • 37
  • 56
0

I found the saving clue in this SO answer. To receive the list, one has to explicitly provide the broadcastType parameter to the query.

Acceptable values are:

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

If you find this answer useful, please make sure to upvote the linked answer (as well). I just copy-pasted this.

Michael
  • 8,362
  • 6
  • 61
  • 88
panepeter
  • 3,224
  • 1
  • 29
  • 41