I am using the Youtube Data API to create live broadcasts programatically. Within the hour, I am able to create around 5-6 streams at which point I will begin to receive 403 insufficientLivePermissions
error. If I wait another 30 minutes and try again, it allows me to make 2 more broadcasts but will then return 403s again.
I checked to see if my access token was expired, but it works when making listing requests. It almost seems to be that I am getting rate limited. When I check my Youtube account however, all indicators are in green so I don't believe I am abusing their API.
This is the response from the YouTube Data v3 API:
{
"error": {
"errors": [
{
"domain": "youtube.liveBroadcast",
"reason": "insufficientLivePermissions",
"message": "Request is not authorized",
"extendedHelp": "https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/insert#auth_required"
}
],
"code": 403,
"message": "Request is not authorized"
}
}
I am also not hitting anywhere near the Quota limits for the API. Any ideas to why the 403 insufficientLivePermissions
would be much appreciated!
This issue means that you actually created too many live streams : if you go to https://www.youtube.com/my_live_events?action_create_live_event=1 and try to create a new livestream you will see :
You are creating too many live streams. Please wait a while before creating further streams.
I think the maximum is set to 6 to 7 streams per 24 hours.
ps : It's really not related to the issue in the documentation (missing scopes)