Live Examples
In this sections are listed some examples for the service endpoint.
Simple translation
Here below there is a live example of translation of "This is an example." input text from "English" (en) to Chinese (zh).
{
"status": "success",
"data": {
"from": "en",
"to": "zh",
"translation": "这是一个例子。"
},
"message": ""
}
Translation with auto-detection
Here below there is a live example of translation of "This is an example." input text from "English" (en) to Chinese (zh) without specifying the source (from) language. An additional "detected_language" parameter is returned in the response.
{
"status": "success",
"data": {
"from": "en",
"to": "zh",
"detected_language": "en",
"translation": "这是一个例子。"
},
"message": ""
}