Youtube video upload limit exceeded

XaoZlo picture XaoZlo · Mar 28, 2017 · Viewed 9.3k times · Source

I use this cmd application https://github.com/tokland/youtube-upload

After uploading 50 videos i am getting this error:

[RequestError] Server response: {
 "error": {
  "errors": [
   {
    "domain": "youtube.video",
    "reason": "uploadLimitExceeded",
    "message": "The user has exceeded the number of videos they may upload."
   }
  ],
  "code": 400,
  "message": "The user has exceeded the number of videos they may upload."
 }
}

And after this error i can upload 1 video per 15 minutes. But after waiting for aproximatley 2 hours i can upload 50 more videos but it does not work everytime. Sometimes even after waiting for 3 hours i still can't upload 50 videos.

Also i never exceeded my quota limit. My quota statistic:

Queries per day

Till 20th of march i was getting this error:

{
 "error": {
  "errors": [
   {
    "domain": "youtube.common",
    "reason": "forbidden",
    "message": "Access forbidden. The request may not be properly authorized."
   }
  ],
  "code": 403,
  "message": "Access forbidden. The request may not be properly authorized."
 }
}

Рow did you solve it? How do you upload videos to youtube in large quantities?

Answer

DaImTo picture DaImTo · Mar 29, 2017

badRequest (400) uploadLimitExceeded The user has exceeded the number of videos they may upload.

This is a user based quota which can not be upgraded. It means that the user in question has exceed their upload limit for the day. The YouTube API has a slightly different quota system than other Google APIs. The ones listed in developer console are just the general ones. You should check calculating quota usage

  • 200,000 read operations that each retrieve two resource parts.
  • 10,000 write operations and 90,000 additional read operations that each retrieve two resource parts.
  • 400 video uploads, 1500 write operations, and 50,000 read operations that each retrieve two resource parts.

This quota should reset at midnight West Coast USA time.

Access forbidden. The request may not be properly authorized.

Means that either your access token or your refresh token is no longer working. You should either use the access token to get a new refresh token. Or re authenticate the application and get a new refresh token. Yes refresh tokens can expire under different circumstances.