API Developers Guide

Machine Translation > Detect Language

Detect language of your text.

GET: /mt/detect/text
Request Params
ParametersDescription

source_content

Text for language detection.
Response Params
ParametersDescription

language

Text language.

Request Example

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

Response Example

{
 "status":
  {
   "code":0,
   "msg":"ok"
  },
 "results":
  {
   "language":"English"
  },
 "errors":[]
}