Skip to main content
POST
/
translate
/
v1
/
detect
{
  "data": {
    "detections": [
      [
        {
          "language": "<string>",
          "confidence": 123,
          "isReliable": true
        }
      ]
    ]
  }
}
{
  "statusCode": 400,
  "message": "q (text) is required"
}
{
  "statusCode": 401,
  "message": "Invalid API key",
  "data": {
    "code": "AUTH_INVALID"
  }
}
{
  "statusCode": 403,
  "message": "API key does not have access to translation service",
  "data": {
    "code": "PERMISSION_DENIED"
  }
}

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
q
required

Text to detect language for. Can be a single string or an array for batch detection.

Response

Language detection successful

data
object