5

I'm using Google's YouTube API Explorer (alternate) to look up information on an arbitrary streaming broadcast belonging to someone else.

No matter what I put into the id field, I always get back

{
    "error": {
        "errors": [{
            "domain": "youtube.liveBroadcast",
            "reason": "liveStreamingNotEnabled",
            "message": "The user is not enabled for live streaming.",
            "extendedHelp": "https://www.youtube.com/features"
         }],
         "code": 403,
         "message": "The user is not enabled for live streaming."
    }
}

This seems ridiculous, considering that the video is plainly streaming.

It occurred to me that I might have misunderstood the instructions for the id field, so I've tried a couple different possibilities. These include...

  • The Channel ID (UCHZoP1Jy-g_h3sqzScrOEwQ)
  • The User ID (GWTV)
  • The Video ID (J_RrkyIOVhg)

...each to no avail.

How can I ask a channel about its live streaming videos? This question would have answered that in the past, but the comments indicate that the answer no longer works. This question wasn't really any help either.

Edit 2022

If you are looking for how to get streaming state and currently streaming video from an arbitrary channel, check out this question and particularly this answer.

Michael
  • 8,362
  • 6
  • 61
  • 88
  • Hello Michael, I am getting the same error "The user is not enabled for the live streaming". when i am running the sample code of "CreateBroadcast.java" file. How did you resolve that. Could you please help me out ? – Rajeev kumar Aug 09 '16 at 08:07
  • @Rajeev I can get you a little further, but I didn't ultimately get this working. If you enable live streaming on your own account, you can get past _that error,_ but when I did that, I [still couldn't get any data.](http://stackoverflow.com/q/32380110/241211) – Michael Aug 19 '16 at 13:35

3 Answers3

5

The Errors heading of the API documentation has this interesting chart:

Error Type Error Detail Description
insufficientPermissions insufficientLivePermissions The request is not authorized to retrieve the live broadcast
insufficientPermissions liveStreamingNotEnabled
(This is the error I'm getting.)
The user that authorized the request is not enabled to stream live video on YouTube. The user can find more information at https://www.youtube.com/features

which implies that because my account is not enabled for live streaming, I can't look at anyone else's live stream information in the API, even if I can pull it up in the browser. This seems kind of arbitrary, but the error I got in the original question turned out to be the permissions problem.

Note that even after enabling live streaming for myself, I still can't get useful data for third-party streams because Google does not allow checking the Live Streaming API for users that are not you.

Michael
  • 8,362
  • 6
  • 61
  • 88
  • In my case it happends when the google/youtube account is not fully activated. try to go to https://www.youtube.com/live_dashboard_splash and check if you can enable streaming. – gipsh Nov 03 '17 at 11:16
0

I had the same error message when trying to get Youtube Livestream status.

In my case I'm using 'Youtube Brand Account' and it's worth trying to switch the brand account as the authorized user. That worked fine. HTH

guest
  • 1
0

In order to fix this we need to enable live stream in studio > setting > channel > feature > enable broadcast

Live stream services will work after 24 hours

kuldeep chopra
  • 652
  • 9
  • 9