API Developers Guide

Machine Translation > Translate

Get machine translation.

GET: /mt/translate/text
Request Params
ParametersDescription

source_language

See Language Codes.

target_language

See Language Codes.

source_content

Text to translate.
Response Params
ParametersDescription

translation

Translated content.

Requset Example

curl --request GET
"https://www.onehourtranslation.com/api/2/mt/translate/text?secret_key=<SECRET_KEY>&public_key=<PUBLIC_KEY>&source_language=en-us&target_language=fr-fr&source_content=text for translation"

Response Example

{
 "status":
  {
   "code":0,
   "msg":"ok"
  },
 "results":
  {
   "TranslatedText":"texte"
  },
 "errors":[]
}