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

74,952

Solution 1

as per following link https://developers.google.com/maps/documentation/geocoding/usage-and-billing

only one daily request quota for this API. otherwise billing compulsory.

Solution 2

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.

Solution 3

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!

Share:
74,952
Richa Srivastava
Author by

Richa Srivastava

Updated on May 16, 2020

Comments

  • Richa Srivastava
    Richa Srivastava about 4 years

    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?

  • Richa Srivastava
    Richa Srivastava almost 8 years
    So after first request if i get this OVER_QUERY_LIMIT error, i have put 2 sec of sleep in my app and then make same request again. But still i get OVER_QUERY_LIMIT error every time. Not sure if i got this issue properly. But shouldn't this resolve my issue?
  • saurabh goyal
    saurabh goyal almost 8 years
    I found this . stackoverflow.com/questions/23459698/… Upon receiving a response with status code OVER_QUERY_LIMIT, your application should determine which usage limit has been exceeded. This can be done by pausing for 2 seconds and resending the same request. If status code is still OVER_QUERY_LIMIT, your application is sending too many requests per day. Otherwise, your application is sending too many requests per second.
  • saber tabatabaee yazdi
    saber tabatabaee yazdi almost 6 years
    what about the developer trying in localhost. I get API key from Google and its only response back to that URL that registers and when the sender is htt p:/localhost it response back this message that exceeded. for sure friendly message is : this key for another domain name and this key registered only for that URL
  • Manmeet Khurana
    Manmeet Khurana almost 6 years
    Effected from 11 June 2018