Michael come lately
Michael come lately

Reputation: 9392

YouTube Streaming API says user is not enabled for live streaming

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...

...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.

Upvotes: 5

Views: 11447

Answers (3)

Michael come lately
Michael come lately

Reputation: 9392

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.

Upvotes: 5

kuldeep chopra
kuldeep chopra

Reputation: 792

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

Upvotes: 0

guest
guest

Reputation: 1

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

Upvotes: 0

Related Questions