问题
I am trying to use Google Translate REST API and while requesting the following url: http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=test&langpair=en|hi&key=mykey
I am getting the following response:
Response: {"responseData": null, "responseDetails": "Quota Exceeded. Please see http://code.google.com/apis/language/translate/overview.html", "responseStatus": 403}
I am getting this message today only. I have tried using the service after one or two months. Previously it was working perfectly. Has Google stopped the Google translate free service or what?
回答1:
You exceeded your quota. Google started to limit the number of API usages a few months back due to the large number of users using the tool excessively.
EDIT: Read the notice on the top of this page: http://code.google.com/apis/language/translate/v2/getting_started.html
回答2:
Google has moved to a Paid model. We moved to the free Bing Translation API, its very similar, it seems to be better at translating and still free: http://www.microsoft.com/web/post/using-the-free-bing-translation-apis
Example of how to use it: http://basharkokash.com/post/2010/04/19/Bing-Translator-for-developers.aspx
回答3:
Well, I think the error message explains itself - there seems to be some daily quota on the use of their API, and you have exceeded it.
But yes, Google is discontinuing the free version of their Translate API, and you will have to pay to continue to use it after December 1 2011.
来源:https://stackoverflow.com/questions/7932001/google-translate-quota-exceeded