livePermissionBlocked error from Youtube liveBroadcast/insert API - youtube-api

When attempting to call the liveBroadcasts/insert API I receive a livePermissionBlocked error. I have two google cloud projects, and both have been verified to be able to use auth/youtube scope. In one project with the same google user I can call that api without any issue. In the other project using the same user I receive livePermissionBlocked error. How can I investigate further why that API fails in one of the google cloud projects?
See below the full error response
{
"error": {
"code": 403,
"message": "The user is blocked from live streaming.",
"errors": [
{
"message": "The user is blocked from live streaming.",
"domain": "youtube.liveBroadcast",
"reason": "livePermissionBlocked",
"extendedHelp": "https://support.google.com/youtube/answer/2853834"
}
]
}
}
Also please note I have verified that the user I am testing with has Youtube streaming enabled. I am able to live stream on Youtube and also using one of my google cloud projects.

Related

YouTube video upload using PHP Data API v3 recently stopped working

We developed a video upload to YouTube several years ago (2013) that stopped working with a misleading error message, since the quota is not the issue, see error message:
{
"error": {
"code": 403,
"message": "The request cannot be completed because you have exceeded your \u003ca href=\"/youtube/v3/getting-started#quota\"\u003equota\u003c/a\u003e.",
"errors": [
{
"message": "The request cannot be completed because you have exceeded your \u003ca href=\"/youtube/v3/getting-started#quota\"\u003equota\u003c/a\u003e.",
"domain": "youtube.quota",
"reason": "quotaExceeded"
}
]
}
}
Could it be that the permissions to upload videos (insert) are not working anymore for the same Google account due to the changes Google/YouTube made in 2020?
I am stuck and hope someone can tell me what the issue might be and how to fix it.
Thanks!

How to resolve Youtube Data API errors

Currently our Youtube data API v3 is enabled.
However, we found there was some error while we calling this API.
The screen shows as the following:
Google_Service_Exception : {
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. YouTube Data API has not been used in project 10xxxxxxxxx29 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=10xxxxxxxxx29 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=10xxxxxxxxx29"
}
],
"code": 403,
"message": "Access Not Configured. YouTube Data API has not been used in project 10xxxxxxxxx29 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=10xxxxxxxxx29 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}
}
We try to create a new O Auth 2.0 ID, but the issue was still got same error.
Is there any way to resolve this problem?
Thanks
Google allows for 50000 request per month/per user.So seem your website has high traffic.You can get another API key from your other gmail then put into API settings.Hope this help.

Insert video into someone else's playlist YouTube API v3 results in 403

So I'm trying to insert a video into someone else's playlist (I'm a collaborator). I can insert the video from youtube.com (website), but doing it via the YouTube API V3 gives a 403.
Response:
{ "error": { "errors": [ {
"domain": "youtube.playlistItem",
"reason": "playlistItemsNotAccessible",
"message": "Forbidden" } ], "code": 403, "message": "Forbidden" } }
For the playlists that I own, the youtube api works fine.
Any clue how I can achieve this?
The error indicates that the request made was not properly authorized to insert the specified playlist item
forbidden (403) playlistItemsNotAccessible The request is not properly authorized to insert the specified playlist item.
You can insert a playlist item in your account since you're using it the account authorized by the API. Since you're trying it on a different account, its resulting with the 403 error. I don't know how its possible in the youtube website, though.

YouTube Data API V3 - Error Access Not Configured

I have a problem with the use of new YouTube Data API V3.
I'm still using version V2 but I plan to migrate my web application to the new version. After doing some tests with a call using the web browser type:
https://www.googleapis.com/youtube/v3/videos?id=TYkPtAmJn4E&key=*******************&part=snippet,contentDetails,statistics,status
I get the following error:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
],
"code": 403,
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
}
I state that the console should be configured correctly, as you can see from the attached images, since it works fine for more than a year with the V2 version of the API.
Can you help me solve this problem?
Thanks.!
You have to create a project, enable Data API v3 from console and use the credentials you create for that project.

503 Service Unavailable when threading?

I get some information via Youtube API V3 with 5 simultaneous thread and just after the launch I have some "503 Service Unavailable" response. When I re-launch the same video it can be ok or not... So it seems there is no problem on my side.
My quota is ok (30k per seconde...)
So what is the problem??
Thanks
I'm using just list video API, for example:
$ time curl --silent "https://www.googleapis.com/youtube/v3/videos?id=AX7Z5eqosxM&part=id%2Csnippet%2CcontentDetails%2Cplayer%2Cstatistics%2Cstatus%2CtopicDetails&key={MY_API_KEY}"
{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "Backend Error"
}
],
"code": 503,
"message": "Backend Error"
}
}
real 0m30.692s
user 0m0.024s
sys 0m0.024s
I don't think you're doing anything wrong—there's nothing inherent in v3 that should prevent a large volume of those calls form succeeding, as long as you're within normal quota limits.
I've seen some other reports of this as well with videos.list() calls, so I've created https://code.google.com/p/gdata-issues/issues/detail?id=4020 to keep track of the issue publicly.
Google develop has a Error Responses page to explain different error codes
https://developers.google.com/analytics/devguides/reporting/core/v3/coreErrors
In this page, they also provide some implementation Exponential Backoff, that might be helpful for you. But I agree with Jeff that there is nothing more we can do but waiting.

Resources