Google Translate API - Access Denied Error 403 - api

I am using Google API for one of my project. I completed all the formalities with google. I pay the bill for using it. But I cannot move out with one issue. If I send data for translation back to back, google reverts back with Access denied Error 403. So I had to put some delay in my code. But as a matter of fact total time is increasing. So what is the possible way to recover this issue.
I am using C# dot net to call the google API.
> https://www.googleapis.com/language/translate/v2?key=xxxxxxxxxxxxxxxxxxxxxxx&q={0}&source=en &target=sv

From Google translate API FAQ page:
You may be exceeding your quota: either the daily billable total, or the limit on request characters per second.
To view or change usage limits for your project, or to request an increase to your quota, do the following:
For more information Google translate API FAQ

Related

Google Workspace Migrate Gmail API Limit

I'm using Google's Workspace Migrate tool to move Gmail data for users from one Workspace domain to another. After about 10 minutes, Gmail message migrations stop with an error saying "Quota exceeded for quota metric 'Queries' and limit 'Queries per minute per user" of service "gmail.googleapis.com' for [Google Cloud project number]."
I don't see in Google Cloud that I'm actually hitting any limits. I don't have the ability to throttle API requests as I'm using a tool provided by Google. Do "free" Google Cloud projects have different limits than "paid" projects?
I'm expecting Google's tool to work as advertised. I have a case open with their support, but I'm not getting anywhere fast when it comes to a solution.
Hello 👋 Not sure if you already got an answer to this, but I recommend checking the Quotas page on GCP to see your current usage. You can access that here. Search for the "Queries per minute per user" metric for the Gmail API and look at your "Seven-day peak usage percentage". A note, though, since your question was posted more than seven days ago, you might need to rerun a migration to see your current usage.
Regarding your question about the limit for "free projects", I can't really help there. I can tell you that on our project (which has a billing account attached), we have the limit set to 15,000.
You can always ask Google to increase your quota if you're not getting enough for your use case.

Youtube Data API quota exceeded

I am developing an app locally and I just integrated the Youtube data api v3 to query videos.
Last night I received the 403 error that said my daily quota has been exceeded. If I look at the chart under quotas in the developer console, it says there was 10,000 requests yesterday. This is totally impossible as I am only using this locally.
Here is the quota chart
If I click on credentials in the left hand menu and select the API key page, it says only 309 requests for that API key in the last 30 days. That is the only API key I have activated. It can't be API theft, as it only says 309 requests for that key.
I am totally confused. What is happening here? Is there a way to see the IP address where these requests are originating from?
Those 2 stats are different from each other. 1 request could have a quota cost of one to over a hundred. That quota cost reflects to the queries per day stat. So it's not surprising for you to hit 10,000 with 300 requests.
To get around this issue, you may need to optimize your API request to retrieve only the resource that you need. If the default quota (10,000) isn't really enough, then you probably need to request for quota increase through the console or through this direct apply for higher quota link.
Complete info can be found in the youtube documentation
You can check how to calculate on link

How do I see if I'm hitting my API rate limit in google sheets / gsuite?

I'm getting some errors on some of the API calls that certain google sheets are setup with. I want to make sure I'm not reaching my limit.
Is there anywhere i can see if I'm reaching my API call limit within g suite?
Exceeding a rate limit will cause an HTTP 403 or HTTP 429 Too Many Requests response and your app should respond by retrying with exponential backoff.
To view or change usage limits for your project, or to request an increase to your quota, do the following:
If you don't already have a billing account for your project, then create one.
Visit the Enabled APIs page of the API library in the API Console, and select an API from the list.
To view and change quota-related settings, select Quotas. To view usage statistics, select Usage.
From: https://developers.google.com/gmail/api/v1/reference/quota

Google Maps Javascript API quota is set to 1 [duplicate]

This question already has answers here:
"You have exceeded your request quota for this API" in Google Map [duplicate]
(2 answers)
Closed 4 years ago.
I'm receiving this error when using Maps Javascript API
Maps error
Apparently, it's because I have exceeded my quota limit; however Google states I have up to 100,000 requests per 24 hours (Google Usage Limits)
When I access Gmy API dashboard, it states my quota limit is one on "Map loads per day".
Google quota limit
Appreciate your help, tnks
I've been having this issue too - however Google documentation contradicts itself in places.
According to "Detailed guide for users of the standard Google Maps JavaScript API" - Enable Billing (step 7) is optional.
Yet clicking more info gives you "You must enable billing on each of your projects" - it's all a bit irritating as this causes confusion for clients (as well as devs!)
OpenStreetMaps is a nice alternative, bit harder to get up and running with and no nice scroll block by default. I'm currently switching to this while Google alienate their userbase
Looks like you need to have billing enabled on the account now, tried with 2 gsuites account, limit is 1 without billing account attached and unlimited with billing account attached.
Edit: see https://developers.google.com/maps/documentation/javascript/usage-and-billing?hl=en_US
Important: Enable Billing As of July 16, 2018, to continue to use the
Google Maps Platform APIs, you must enable billing on each of your
projects. If you choose not to add a billing account, your maps will
be degraded, or other Maps API requests will return an error.

How to get unblocked after exceeding the Google Geocode API usage limit?

Have searched for answers on this for 2 days now with very little luck.
I'm developing a Drupal 7 site which has a Geofield field being autopopulated from an address field using the Google Geocoder API, but as of a couple of days ago this stopped working:
Exception: Google API returned bad status.\nStatus: OVER_QUERY_LIMIT in geocoder_google() (line 52 of /home/.../modules/geocoder/plugins/geocoder_handler/google.inc).
I can remove the proximity search filter that is sending too many requests to the Google API but I can't progress because I run into the above error every time I try to add a new record to the database (which just does one lookup to get a geocode from an address field but fails). Is there any way to unblock my site from Google's API or reset my usage? I've added an API key but to no avail. This was all working fine up until very recently, which I guess is when I unknowingly exceeded the usage limit.
I have limited API experience and am a Drupal/PHP beginner so please be gentle! Happy to provide more info, code, error messages etc if needed. Relevant Drupal 7 modules being used are OpenLayers, OpenLayers Proximity, Geofield, GeoPHP and Geocoder. Thanks for any help anyone can offer.
From Google Geocode Documentation:
Use of the Google Geocoding API is subject to a query limit of 2,500 geolocation requests per day. (User of Google Maps API for Business may perform up to 100,000 requests per day.) This limit is enforced to prevent abuse and/or repurposing of the Geocoding API, and this limit may be changed in the future without notice. Additionally, we enforce a request rate limit to prevent abuse of the service. If you exceed the 24-hour limit or otherwise abuse the service, the Geocoding API may stop working for you temporarily. If you continue to exceed this limit, your access to the Geocoding API may be blocked.
So, I guess you have to wait 24 hours, or upgrade to the business version.