Using Cloud Text-to-Speech API v1 in Apis Explorer, I get this error when processing larger files:
5000 characters limit exceeded
https://developers.google.com/apis-explorer/
I checked my quota in Cloud Text-to-Speech API, the quota of characters in all requests par minute is 150000.
What could I do ? Thanks
This is a content limit per request. It is documented here. You can send up to 150000 characters in "all requests per minute", but each individual request may contain at most 5000 characters.
You can use the iterative approach (for/while loop) to process your data. This will limit the number of character at each request.
Related
I have a data-set of 16 Millions for which I will send the address etc to Google Geocoding API and get the lat-longs. Right now we are making an API request for POI by POI, I'm wondering if we can do bulk /batch request, where in which I send around 500 POIs or so, so that we can save some round-trip time. Please advise.
You can use the Web-Service Geocoding API and call the request via Curl, you'll just need to create an interval for each batch request to reaching the request/100s limit. If the maximum request/100s limit is not enough for your use case, you may file a support case via https://console.cloud.google.com/google/maps-apis/support so the support team can help you give your account more capability to send requests more than the limit.
Google references this:
https://developers.google.com/maps/documentation/javascript/geocoding
And states:
The per-session rate limit prevents the use of client-side services for batch requests, such as batch geocoding. For batch requests, use the Geocoding API web service.
However, when you go to the Geocoding API web services page, I see no reference to batch processing. The above sentence infers that you can do batch processing. I need to send a large number of addresses to get lat and longitude, but doing individual calls for each address is taking extremely long periods of time and need a more efficient method. Hopefully, a single batch call to send all the addresses.
Any ideas of how to batch process addresses on google to get lat and longitude?
I have seen this Google Batch Geocoding API
However, it states you can not which is not what the above google statement infers.
Per the Geocoding API web service documentation:
Other Usage Limits
While you are no longer limited to a maximum number of requests per day (QPD), the following usage limits are still in place for the Geocoding API:
50 requests per second (QPS), calculated as the sum of client-side and server-side queries.
You are just limited to 50 requests per second and have to pay for them (after you use up the $200 credit)
The best way I found to solve this problem is to use the Directions API with up to 27 destinations (origin, destination and 25 waypoints) and get your geolocation for the response legs. The position accuracy is slightly lower than in the geocode case from what I observed, but it is still a great tradeoff.
In the worst case you will have to call the Directions API twice when one or more addresses are not found in your call. The good thing in this case is that the Directions API will give you a response with the geocoded_waypoints which will specify the NOT_FOUND locations with a geocoder_status. After that, you can eliminate the bad ones and call again.
There are currently no available feature for a Geocoding API to handle multiple address at a single call, however, you may implement the batch process via cURL, by doing this, you can call multiple requests at once automatically. Implementation will be up to your use case as well.
I have enabled pay as you go pricing on my Google account and I am sending an API key with all my Google Maps Geocoding requests however I am still receiving this error message
You have exceeded your daily request quota for this API. We recommend registering for a key at the Google Developers Console
I have checked the quota page on the API dashboard and I am well below the limit of 100,000 per day. My key is only used for this geocoding script and this is not the same as the rate limit error which I sometimes receive.
Is there another limit I am unaware of? Can the quota page of the console be relied upon?
Unless you are doing 50 requests per second, calculated as the sum of client-side and server-side, you shouldn't have this problem.
" My key is only used for this geocoding script and this is not the same as the rate limit error which I sometimes receive."
what do you mean with this? are you using more than one API key?
which APIs are you using? only Geocoding?
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 am developing an application which fetchs data from Google Spreadsheet using query.
The data comes in JSON format. I want to know whether there is any restrictions on number of request that can be sent to Google server for fetching the JSON from the spreadsheets.
I mean is there any restrictions like per hour or per day N requests.
Never seen a limit and suspect there is no such limit, but might be wrong.
Any ideas of rough volumes? I have has about 10 people at once use the service, it did slowdown a little, but was ok.
If it helps, the gdata style spreadsheet API takes about 1 Second/read and 2-10seconds/write (large sheets are slower)