I am currently working on a webapp that uploads files to google drive. Depending on the type/category of file, the web app will check for and create an appropriate directory tree to put the file in. Every now and then I am getting this error:
User Rate Limit Exceeded [403]
Errors [
Message[User Rate Limit Exceeded] Location[ - ] Reason[userRateLimitExceeded] Domain[usageLimits]
]
I have checked the daily and per minute quotas under the project in the API manager and it looks like we're going no-where near the quota, but still occasionally having this issue.
As I need to make sure files end up in the right directory structure, I am walking the tree which means I am making a bunch of calls to the API as quickly as the API returns an answer.
Does the drive API have any burst limits or as long as long as you stay under the quotas it should work?
Related
We are querying google maps service for static map image that stops working after some time (usually later in a day) with "StaticMaperror/Signature" error but we are not using Signature.
The problem is usually automatically gone after 00.00 AM (Pacific time) next day. There are no limits/thresholds configured on Google console portal for this API/key and it's not clear why we are getting this error after some time as it clearly looks like connected to some threshold/requests limit on on Google console portal
https://maps.googleapis.com/maps/api/staticmap?center=USA&zoom3&size=395x272&maptype=roadmap&key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Based on this documentation, you are only allowed up to 25,0000 unsigned(no digital signature) static maps requests per day.
It is possible that you are hitting this limit which causes you to get those errors.
For more than requests 25, 000 requests, you are required to include a digital signature in your Static Maps API request. Here's a guide on how to generate a digital signature.
If you are still having issues or concerns regarding your specific Google Maps project, you can always reach out to Google Maps Platform support.
Hope this helps!
I'm using a json script from another stack overflow post and don't know with what frequency I'm calling the external data (from Seatgeek).
I don't want to get cut off from the Seatgeek api so I want to make sure I'm not going to bog down the system - I really only need the data to refresh twice a day.
I would not consider myself a developer so I'm not sure where to look. Can someone please help by taking a look at the script?
According to the Google Sheets API documentation:
Google Sheets API has a limit of 500 requests per 100 seconds per project, and 100 requests per 100 seconds per user. Limits for reads and writes are tracked separately. There is no daily usage limit.
Also, if you want to find the usage and more statistics regarding the API, you can check the Google API console and find all the information there.
For more information regarding your issue, you could check the following documentation:
[1] Google Sheets API;
[2] Google Console API Quota
I have created a GIS application that builds the URL for a Google Static Map.
(example: https://maps.googleapis.com/maps/api/staticmap?center=32.3077562448,36.3423937253&zoom=18&size=1280x1280&scale=2&maptype=satellite&sensor=false).
This application was working perfectly until this morning, when all these URLs started to show the following image.
Has Google banned my IP adress? If yes, how long will the ban last?
You should read the Google Static Maps Usage Limits
The Google Static Maps API has the following usage limits:
25 000 free static map requests per application per 24 hour period.
Additional image requests can be purchased on a per application basis
at the rate currently listed in the FAQ. Additional quota is purchased
through the API Console and requires the use of an API key.
If a user exceeds these limits, the server will return an HTTP 403
status and display the below image to indicate that the quota has been
exceeded:
25 000 requests per day does not seem to be the only limit though. It seems that google does deny access if requests per 15 minutes exceed some 100 or so for a single IP Address. The image you see obviously is a result of these limitations. Usually the limit will be reset soon (after 15 to 60 Minutes).
I'm programming web application that works with Google Maps and I need to generate PDF output so I decided to use static API. My application will be using set of 1500 small map images (100*100px). I dont want to ask Google for every image thousand times a day so I wrote a script to download all images and save it to my server where images will be used from. After downloading 300 images my server gets this error:
Warning: readfile(http://maps.googleapis.com/maps/api/staticmap?size=100x100&maptype=roadmap&markers=icon:http://mediup.martinstrouhal.cz/arrs/210.png%7Cshadow:false%7C50.078522,14.436551&sensor=false&zoom=16) [function.readfile]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
Does this mean that google is blocking me permanently?
You are missing the API key.
Without including your API key The Streetview Images API is throttled by IP to 1000 images per 24 hours and 5 images per minute, both of which you are likely to hit if you do not use the key. With the key you can pull 25000 images / day
Format should be:
http://maps.googleapis.com/maps/api/streetview?size=400x400&location=40.720032,-73.988354&sensor=false&key=API_KEY
Docs for streetview include how to get an API key.
https://developers.google.com/maps/documentation/streetview/?csw=1
It's likely that Google Maps has a throttle on it that will cut off anyone abusing the API. Since you are just storing the images, put a random wait in between each request and let it run for a long time until you get all the images you need.
It depends on whether you are using the Static Maps API or if you are doing direct tile access.
Direct tile access is prohibited by Google, so they will block you if the server suspects you're pulling down tiles for caching. They don't state the limits on this for security reasons.
Static Maps has a limit of 2500 per day per IP address, but it is throttled as to how many you can pull down per second.
In any case, using Static Maps or direct tile access to save imagery for later use is against Google's ToS.
According to many sources Googled - the ban lasts for 24 hours but found no really official answer on that.
Perhaps you could inform us how long your ban was.
We have a Map It feature on a Real Estate Website and its on a Shared Host, the feature basically shows you the location of a property of works fine for a few hours a day but it stops working later in the day because of error Code "620" for the map request from Google maps API KEY.
we need this issue fix immediately.
Sample could be found here http://www.luxuryrentalsmiamibeach.com/The-Setai-Miami-Beach-13
click on the Map It link to see example
The "Map It" link works flawlessly ATM. The Google error Code 620 means G_GEO_TOO_MANY_QUERIES which either means you had too many API requests per IP per day or in an unspecified time frame.
About the too many API requests per day you cannot do much besides load balancing, changing your IP or paying for the Google Maps API. About the too many API requests per time frame (e.g. 2000 requests per minute) you can do something by delaying your requests.
Also think about caching your results serverside to not put too much strain on the Google servers.
There are several tutorials available on the 620 error and how to circumvent it, just google for it. To get you started you can read "Geocoding multiple addresses"