The Google Translate API has been officially deprecated an alternative is the Microsoft Translator V2, check this article for more details.
In this post i will show you how work with the Google Translate API V2 (Labs), this API lets you automatically translates text from one language to another.
Disclaimer
This version of the Google Translate API is in Labs, and its features might change unexpectedly until it graduates.
The Google Translate API requires the use of an API key, which you can get from the Google APIs console
Before to use this API check the Google Translate API Terms of Use.
To use the Google Translate API you must send a HTTP GET request to its URI.
The URI for a request has the following format:
Example to making a request to translate the Hello World text from English (en) to Spanish (es) the URI must be constructed in this way
The response in JSON format will be
To activate the auto-detection of the source language you must avoid the use of the source keyword
and the JSON response in this case will be
crdt : Rodrigo
result :

http://code.google.com/intl/en/apis/lan ... _rest.html
In this post i will show you how work with the Google Translate API V2 (Labs), this API lets you automatically translates text from one language to another.
Disclaimer
This version of the Google Translate API is in Labs, and its features might change unexpectedly until it graduates.
The Google Translate API requires the use of an API key, which you can get from the Google APIs console
Before to use this API check the Google Translate API Terms of Use.
To use the Google Translate API you must send a HTTP GET request to its URI.
The URI for a request has the following format:
Código: Seleccionar todo
https://www.googleapis.com/language/translate/v2?parameters
Código: Seleccionar todo
https://www.googleapis.com/language/translate/v2?key=INSERT-YOUR-KEY&source=en&target=es&q=Hello%20world
Código: Seleccionar todo
{"data":{"translations":[{"translatedText":"Hola Mundo"}]}}
Código: Seleccionar todo
https://www.googleapis.com/language/translate/v2?key=INSERT-YOUR-KEY&target=es&q=Hello%20world
Código: Seleccionar todo
{"data":{"translations":[{"translatedText":"Hola a todos","detectedSourceLanguage":"en"}]}
result :

Código: Seleccionar todo
id = HTTP.SubmitSecure("https://www.googleapis.com/language/translate/v2",...
