POST
/
json
/
v1
/
languages
/
detect
curl --request POST \
  --url https://api.jsontrans.com/json/v1/languages/detect \
  --header 'Content-Type: application/json' \
  --header 'jt-api-key: <jt-api-key>' \
  --data '{
  "source_text": "hello!"
}'
{
  "code": 200,
  "msg": "Language detected successfully",
  "data": {
    "detected_lang_code": "en"
  }
}

Headers

jt-api-key
string
required

API authentication key

Body

application/json

Text for language detection

The body is of type object.

Response

200
application/json

Successful language detection

The response is of type object.