tokland / youtube-upload

Upload videos to Youtube from the command line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Youtube Quota Exceeded Exception when it's actually not

Jaqen00 opened this issue · comments

I'm using youtube-upload and have been for quite some time without any problems. Recently, we've been getting this 403 exception:

Using client secrets: /root/ytb_api/ppx_client_secrets.json
Using credentials file: /root/ytb_api/ppx_credentials.json
Start upload: ./ppx_video/new.mp4
[RequestError] Server response: {
"error": {
"errors": [
{
"domain": "youtube.quota",
"reason": "quotaExceeded",
"message": "The request cannot be completed because you have exceeded your \u003ca href="/youtube/v3/getting-started#quota"\u003equota\u003c/a\u003e."
}
],
"code": 403,
"message": "The request cannot be completed because you have exceeded your \u003ca href="/youtube/v3/getting-started#quota"\u003equota\u003c/a\u003e."
}
}

In the google developer's console, it says that we are still under the quota (currently it states "units/day 163,817 of 50,000,000").
Am I missing something about how it work?

Unfortunately, Youtube has drastically reduced the quota to 10.000 per day for any new/recently created API.

not just recently, the secret key from my old project is no longer usable, they have roll out the quota limit to everyone.

not just recently, the secret key from my old project is no longer usable, they have roll out the quota limit to everyone.

That did not happen to me. I have a key that is ± a year old?

For the record. There is a form to request more quota: https://services.google.com/fb/forms/ytapiquotarequest/

have read the official document
https://developers.google.com/youtube/v3/getting-started#quota

Note that projects that had enabled the YouTube Data API before April 20, 2016, have a different default quota for that API.

although the statement says it only affect project after 2016,
one of my old project created at 2012 is affected and got weird issue prevent it from using youtube data api.

Ugh...Youtube is becoming too restrictive - and messy!
I hope there is a change soon..or a new video platform!

I was having this issue with a newly opened google cloud account. I didn't experience this problem when I tried it from another account that was actively used and had a billing.

I‘m using selenium for a alternative way to upload more videos

I‘m using selenium for a alternative way to upload more videos

Could you elaborate? I cannot seem to find how to do that.

use chrome webdriver,first login Google account in webdriver,then find the <input type=“file”> element in upload page and sendfile.@renenijman

use chrome webdriver,first login Google account in webdriver,then find the element in upload page and sendfile.@renenijman

Got it. Thanks for the quick reply!

@Jaqen00 Is there any limit on the number of videos if we use selenium?

@Jaqen00 Thank you for the quick response. That would be great without such strict quota limitation. I encountered some weird issues with YouTube Data API V3: even with a newly created project on Google Console and its secrets file, it shows 'quota exceeded' when uploading video with this 'youtube-upload' tool.

is there any kind of search limit in youtube data API V3 of quota? Like 100 searches i can do in a day or more than this can anyone tell me?

is there any kind of search limit in youtube data API V3 of quota? Like 100 searches i can do in a day or more than this can anyone tell me?

YouTube Search API consumes 100 units per search and the quota limits is set to 10,000. So,
no of searches = 10,000/100 = 100 searches

commented

Quota is 1,600 per video upload. This still works for me, as I can get around 6 videos per day uploaded. Some days I have more videos than others, but I can just queue them up with a cron to be uploaded on a day with less traffic.

If you really need more, you can also pay to increase the quota up as high as you want.

use chrome webdriver,first login Google account in webdriver,then find the element in upload page and sendfile.@renenijman

@Jaqen00 Any chance you could share your code for doing this? Were you able to insert video title, description, tags, custom thumbnail, etc?

use chrome webdriver,first login Google account in webdriver,then find the element in upload page and sendfile.@renenijman
@Jaqen00 Any chance you could share your code for doing this?
@brokeharvard

Please check out https://github.com/linouk23/youtube_uploader_selenium.

I have Quota Name Limit Queries per day 0

##############################################################

youtube.error.PyYouTubeException: YouTubeException(status_code=403,message=The request cannot be completed
because you have exceeded your quota.)

When I check Quotas I saw :

Quota Name Limit
Queries per day 0
Queries per 100 seconds per user 300,000
Queries per 100 seconds 3,000,000

Errors 100
YouTube Data API v3 12 100 51 367

I solve it by creating new project with new Credentials in Google Console.

I'm using youtube-upload and have been for quite some time without any problems. Recently, we've been getting this 403 exception:

Using client secrets: /root/ytb_api/ppx_client_secrets.json
Using credentials file: /root/ytb_api/ppx_credentials.json
Start upload: ./ppx_video/new.mp4
[RequestError] Server response: {
"error": {
"errors": [
{
"domain": "youtube.quota",
"reason": "quotaExceeded",
"message": "The request cannot be completed because you have exceeded your \u003ca href="/youtube/v3/getting-started#quota"\u003equota\u003c/a\u003e."
}
],
"code": 403,
"message": "The request cannot be completed because you have exceeded your \u003ca href="/youtube/v3/getting-started#quota"\u003equota\u003c/a\u003e."
}
}

can anyone tell me what is happen because it wasn't quite long i started the project and having this problem
can