Suddenly YouTube API is not working with exceed qouta - youtube-data-api

I am using the Youtube data api v3 to get the YouTube video list for many years.
Suddenly YouTube API is not working with 'quotaExceeded'
W/System.err: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
W/System.err: {
W/System.err: "code" : 403,
W/System.err: "errors" : [ {
W/System.err: "domain" : "youtube.quota",
W/System.err: "message" : "The request cannot be completed because you have exceeded your quota.",
W/System.err: "reason" : "quotaExceeded"
W/System.err: } ],
W/System.err: "message" : "The request cannot be completed because you have exceeded your quota."
W/System.err: }
How can I solve this problem?
Is there any change the YouTube Data API?
Thanks,
Bolero.

The error is exactly what it is. You have exceeded your quota of requests. You need to stop making requests until your quota balance rebuilds. I would recommend implementing a back-off when you receive that quota. You may also want to check your response headers to see if there's something saying how many more calls you can make in that time period.
You could also check your usage in the Google Api Console. Typically inside of your Google Cloud console.

Related

YouTube getting started quota

I'm currently getting this error:
googleapiclient.errors.HttpError: <HttpError 403 when requesting https://youtube.googleapis.com/upload/youtube/v3/videos?part=snippet%2Cstatus&alt=json&uploadType=multipart returned "The request cannot be completed because you have exceeded your quota.". Details: "The request cannot be completed because you have exceeded your quota.">
Even though I have not made 10000 requests.
I have only made 40 requests in about 1 hour so I'm unsure why this is happening.

Why am I getting a 403 error in YouTube Data API v3?

I am trying to use the youtube-v3-api for a school project. I keep getting the message, "The request cannot be completed because you have exceeded your quota."
How can I get past this?

403 'serving limit exceeded' but have 'Unlimited requests/second/user'

We utilize the Content API for Shopping to make updates to our product data. We do this several times a day, and have done so for just over 2 months.
We made several successful calls today, but then started receiving the following:
Google API Error Response:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "servingLimitExceeded",
"message": "Serving Limit Exceeded"
}
],
"code": 403,
"message": "Serving Limit Exceeded"
}
}
That lasted about an hour, then we made successful calls for a bit, then started getting errors again.
Checking the Google API Console -both Quota and Reports, we have 'Unlimited requests/second/user' for the all aspects of this API.
Is there an API issue? If we are exceeded a quota, we do not see what that is.

ERROR 503 when using the google admin sdk directory

We have an automated batch that runs every day to synchronise users between an internal users MYSQL table and google accounts. Since the end of may (2014/05/29), this batch is failing because each request to create or update users results in the following response :
503 Service Unavailable { "code" : 503, "errors" : [ { "domain" : "global", "message" : "Backend Error", "reason" : "backendError" } ], "message" : "Backend Error" }
The only information I could find in the help center about 503 errors is that it comes from a quota being reached. Looking at the graphs available in the API console shows that we are well below the defined quota (150K/day), over the last 28 days period we did not even reach 0.05% of that quota.
Has anyone got an idea why we get that error since the quota doesn't seem to be the issue? Any help would be greatly appreciated.
Cheers,
Etienne Bömcke

Google Tasks API: 403 Forbidden, Serving Limit Exceeded

Hello Google Tasks API team,
Since a couple of days ago we've started getting "403 Forbidden" for many of our users.
Can you please check what is going on? Our API console is clean, #calls are way bellow quotas.
Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"message" : "Serving Limit Exceeded",
"reason" : "serviceLimit"
} ],
"message" : "Serving Limit Exceeded"
}
at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:145) ~[google-api-client-1.15.0-rc.jar:1.15.0-rc]
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:111) ~[google-api-client-1.15.0-rc.jar:1.15.0-rc]
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:38) ~[google-api-client-1.15.0-rc.jar:1.15.0-rc]
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:312) ~[google-api-client-1.15.0-rc.jar:1.15.0-rc]
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1042) ~[google-http-client-1.15.0-rc.jar:na]
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:410) ~[google-api-client-1.15.0-rc.jar:1.15.0-rc]
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343) ~[google-api-client-1.15.0-rc.jar:1.15.0-rc]
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460) ~[google-api-client-1.15.0-rc.jar:1.15.0-rc]
If this API is anything like the Google Directory API, this could mean you are hitting a "per user" rate limit. E.g. the directory API defaults to 15 requests per second per user, then returns this same 403 error. To fix this, change the quota in the Google API console, or make fewer requests per second. See:
API console: https://code.google.com/apis/console/
Documentation about quotas: https://developers.google.com/console/help/#cappingusage

Resources