Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

You have exceeded your daily request quota for this API. Google Places API iOS Swift

I am trying to use Google Places API in a very simple app. I just want to locate all the shopping malls near the current location. I used this web service:

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=12.9412390245245,77.6171295438685&radius=1000&sensor=true&types=shopping_mall&key=MY_SERVER_KEY

It was working, but now I am getting the following error message:

{
   "error_message" : "You have exceeded your daily request quota for this API.",
   "html_attributions" : [],
   "results" : [],
   "status" : "OVER_QUERY_LIMIT"
}

How can I avoid this? Also, while creating server key, I did not provide any IP address, as I don't have any server. I don't want to pay anything for this simple service. Is there anyway we can avoid it or any other free alternative?

like image 248
Richa Srivastava Avatar asked Jul 06 '16 04:07

Richa Srivastava


People also ask

What is the daily free quota for Google Places API?

Almost every Google API has a daily free quota. For Google Places API it's 2500 requests per day and 10 requests per second. If you want to use more than that, I would suggest to enable billing.

How do I Find my geocoding API quota?

In the Cloud Console, open the Google Maps Platform Quotas page. Click the APIs drop-down and select the Geocoding API. To view the quota limits, scroll down to the Requests card. A table lists the quota names and limits.

What happens if I exceed the quota for a Google Analytics API?

If the quota of requesting a Google Analytics API is exceeded, the API returns an error code 403 or 429 and a message that the account has exceeded the quota. See the terms of service for more information.

What is the API quota for the API console?

In the API Console, there is a similar quota referred to as Requests per 100 seconds per user . By default, it is set to 100 requests per 100 seconds per user and can be adjusted to a maximum value of 1,000.


2 Answers

here is your answer link

@engin-kurutepe Have answered it very well .

He writes "Make sure that you're not hitting the Google API too fast. They don't limit the total number of requests but the rate of requests. About 10 requests per second is more or less the fastest you're allowed to hit their APIs."

Hope this Helps!

like image 61
saurabh goyal Avatar answered Nov 09 '22 23:11

saurabh goyal


Almost every Google API has a daily free quota. For Google Places API it's 2500 requests per day and 10 requests per second. If you want to use more than that, I would suggest to enable billing. If you still want to use the free quota, please wait for a day to get those 2500 requests again.

P.S. : The quota is based on specific accounts. Please make your own API key using Google API console if you're using a random one.

Hope it helps.

like image 32
Bharat Avatar answered Nov 09 '22 23:11

Bharat