Skip to main content
POST
/
translate
/
v1
/
detect
Detect language
curl --request POST \
  --url https://api.case.dev/translate/v1/detect \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "q": "Bonjour, comment allez-vous?"
}
'
{
  "data": {
    "detections": [
      [
        {
          "language": "fr",
          "confidence": 0.98,
          "isReliable": true
        }
      ]
    ]
  }
}

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 array for batch detection.

Response

Language detection successful

data
object