Reputation: 23
The Google translate API FAQ at https://developers.google.com/translate/v2/faq#technical states that the maximum number of characters per request is 5000. However, I am unable to send more than 2000 characters without getting HTTP error 414: The requested URL /translate... is too large to process.
I am getting this from my .NET app but have also reproduced the same error from Fiddler.
Below is the URL I am sending (just over 2000 characters). Am I misunderstanding the 5000 character limit?
Upvotes: 2
Views: 6112
Reputation: 1925
You'll need to POST the data if you wish to process more than 2000 characters:
All other query parameters are optional. The URL for the GET, including parameters, must be less than 2K characters.
Note: You can also use POST to invoke the API if you want to send more data in a single request
https://developers.google.com/translate/v2/using_rest
Upvotes: 6