I'm currently using Google's Maps Geocoding API and, as the documentation informs, it has a limit per day usage of 2500 requests.
Is there some service that I can call to check how many requests I already did, or I still can do? I know that in the Google's API Console has this information, but I was considering doing something programmatically with my application, where it can by itself know the current status and inform me if the request is close to ending.
FYI: I am aware that if the requests ended the service returns a flag informing OVER_QUOTA, but I'm interested in discovering before it has finished.
The Geocoding API uses a pay-as-you-go pricing model. Geocoding API requests generate calls to one of two SKUs depending on the type of request: basic or advanced. Along with the overall Google Terms of Use, there are usage limits specific to the Geocoding API.
While there is no maximum number of requests per day, the following usage limits are in place for the Maps JavaScript API: 30,000 requests per minute. 300 requests per minute per IP address. In the Google Cloud Console, this quota is referred to as Map loads per minute per user.
Google Maps Geocoding Rate Limit According to Google's API Usage and Billing page, there is a limit of 50 requests per second. If you exceed this amount, subsequent requests to the API will fail with the OVER_DAILY_LIMIT or OVER_QUERY_LIMIT status code and the geocoded data will not be returned.
Currently there is no any service that allows to check the usage programmatically.
The corresponding feature request has already been filed in the Google issue tracker:
https://issuetracker.google.com/issues/35830575
Please add a star to the feature request to express your interest and subscribe to notifications from Google.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With