How is rate-limit in Azure API Management calculated - api

In Azure API Management , rate and quota limit both have a renewal-period configuration.
For eg.
renewal-period is defined as "The time period in seconds after which the quota resets."
My question is, when does the quota start , does it start from the first second of lets say 0000 GMT or is calculated from first request or is a rolling window.
Apigee has a very documentation of quota rate counters as documented here
Can someone explain how azure calculates it ?

Rate limiting is using sliding window. Quota is using fixed window. We will update the documentation - thanks for the feedback!

Related

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

Google Custom Search API use which timezone for counting the daily quota?

Google Custom Search API has a free quota for 100 queries per day, so what timezone is used by the API for counting the daily quota?
GMT or my server setting or other?
It used Pacific time to reset api key quota https://time.is/PT
You can go to your quota page, https://console.cloud.google.com/apis/api/customsearch.googleapis.com/quotas and it says "Daily quotas reset at midnight Pacific Time (PT)."
Even if you are in Europe or use a language that is not US English, Google's daily quota still uses Pacific Time.
However, I wonder if it is really reset at 00:00 PT. I think it's been 24 hours since I used up the daily quota of a project, the usage now is still 100%. Weird.
Google Custom Search API has a free quota for 100 queries per day, so what timezone is used by the API for counting the daily quota?
answer is GMT

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

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.

Not able to apply for BigQuery API quota. Broken link?

I am trying to request BQ API quota.
According to AIM I have - / 0 limit.
When I click "apply for higher quota" I am being redirected to..
Get Help Developing with Google BigQuery page that has nothing in common with BQ API.
That looks like a... Broken link?
Any ideas what is going on?
Thanks.
This quota metric is actually an internal-only quota bucket that shouldn't affect your usage of BQ. You can safely ignore it (and we'll hide it in the future).
BigQuery's quota limits are documented here:
https://cloud.google.com/bigquery/quotas
If you'd like to request an increase in one of those quotas, please contact support:
https://cloud.google.com/support/
But note that not all quotas can be adjusted.

Increasing quota on google elevation api

I am sending from my application queries to the Google elevation api, like http://maps.googleapis.com/maps/api/elevation/json?locations=39.7391536,-104.9847034&sensor=false.
I have reached my daily quota after 2500 requests and google states in their documentation that I can buy extra quota.
However I was unable to find where I could buy this quota increase. Any idea ?
Thanks.
You need to buy Google professional API starts at £8K per year.. !!
You can now pay for your usage. Check out the plans page here: https://developers.google.com/maps/pricing-and-plans/