How does Google define "day" for Google API quotas? - api

Google Cloud Translate API, for example, sets a default quota of 2 million characters "per day".
However, I can't find their definition of "day" anywhere.
Is this calendar-based, or is it a sliding time interval?
(Observation suggests that it is a sliding time window.)
If calendar-based, when does each day begin?
Is this immutable or does it vary?
Can developers set the start or end time of a project's "days"?
If it is a sliding window, can developers reset it? This could help us manage usage that comes in bursts, and could help us test limiting situations.
Thanks in advance for any information you can provide.

I found one answer in Google's online documentation, and it is specific to the Google Analytics API.
This API's daily quota is calendar-based and immutable:
Daily quotas are refreshed at midnight Pacific Standard Time.
From: Google Developers | Analytics Real Time Reporting API | Limits and Quotas on API Requests
I assume that this definition probably applies to the other Google APIs, as well.

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.

How to get a rout information with trafic flow information included for a past date?

I am trying to use Azure Maps API. It will be nice to have route information which should include the locations of course and a speed profile. As you can understand speed profile is not an east one. Free flow speed profile is ok. But we want to simulate real-world conditions meaning that we want to select date and time of departure to get accurate speed information as close to as possible to a real world traffic influence.
Is there any feature that Azure provide this? If not, which API can provide this
I don't have any code at this moment to show since ı don't know which API to use.
Historical traffic data is not currently available in Azure Maps but is being investigated as a potential future feature.

How to see the remaining quota on api youtube v3

I rest an old question which for me has remained unanswered (I do not know if it is possible to go back with an old question on SO).
I hope the weather will have done its job.
I searched a lot on the internet but without success.
I'd like to know if it's possible, through an API request, to get the remaining daily quota on a youtube V3 project.
#MickaelLherminez You can find out your daily quota usage and limit in your Google Developer Console (https://console.developers.google.com).
Once you select your project, go to "Dashboard" and click on "YouTube Data API v3" below your graphs.
Once you click it, you can find your quota information in the "Quotas" block on the left side just below what service you're using (in this case YouTube Data API v3)
This is not possible at this time. The most that you can do is use the YouTube API's Quota Calculator to see how much quota you are using in a day and estimate how much you have left. Hopefully, YouTube will add this feature in the future. Sorry I couldn't be of more help.

Google Place API usage limitations and billing

I have developed one app in which i have used the Google Place API. This is what places doc says about limitation.
The Google Places API has the following query limits:
Users with an API key are allowed 1 000 requests per 24 hour period.
Users who have also verified their identity through the APIs console are allowed 100 000 requests per 24 hour period. A credit card is required for verification, by enabling billing in the console. Your card will not be charged for use of the Places API.
So my question is that if i enable billing for Place API then its free? Is it really true?
Yes, you will have what they are saying. I have done that, so I can confirm... If you put your credit card info, you are letting them know that you are a verified user, and that therefore you won't misuse their services.
And for the second question, we are talking about Google here. It is really true, you won't be charged, they can make money from other sources :)
EDIT:
Actually, if you need more than the "verified" option, it seems you can contact them as stated by Thor Mitchell (Product Manager #Google) in this topic at Quora: Pros and Cons of Places API
"The limits on use (after identity verification) is 100,000 requests
per day, and we're happy to talk to developers who need more about
their requirements."
As of today, the limit is 150,000 free requests per day, but the documentation is hard to make sense of in terms of how they bill overage.
Latest update March 2019:
"For an overview of pricing for the Google Maps Platform products, please see the Pricing Sheet.
To learn more about how Google Maps Platform APIs are billed, please see Understanding billing for Maps, Routes, and Places."

Google API Request Limit

Does anyone know where I can find Google API Request Limits for their different services?
On simulating 500+ concurrent users it seems to fail silently fairly often (maybe 1 in 10 loads)
Any ideas?
The information is in their support resources. I am not aware of a central place, but it's all there. Searching the docs for "request limit" should usually do the trick.
The Geocoding API's limits for example can be found here.
Google Maps API Web Services and Google Static Maps API limits were cut effective a few days ago. Starting October 1st 2011 commercial web sites and apps using Google Maps API for free receive:
max of 2,500 calls/day, if modified using Styled Maps feature
max of 25,000 calls/day in total
Fusion tables are preferable to the Google Maps API alone, particularly with respect to rate limits:
Applications using the Google Fusion Tables API can send a maximum of
5 requests per second to the Google Fusion Tables server.
I think they removed the limit recently: can't even find a mention of it in documentation pages where I know for sure that it was mentioned and read about the limit removal somewhere this summer.
Even their new EULA states that their service is not limited but they remain free to limit it however they want at any moment.
500 concurrent users doesn't seem to be that much though, even if limitations where in place; are you sure it's Google what's failing?