Detect the language of text. Returns the most likely language code and confidence score. Supports batch detection for multiple texts.
curl --request POST \
--url https://api.case.dev/translate/v1/detect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "<string>"
}
'{
"data": {
"detections": [
[
{
"language": "<string>",
"confidence": 123,
"isReliable": true
}
]
]
}
}Was this page helpful?
curl --request POST \
--url https://api.case.dev/translate/v1/detect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "<string>"
}
'{
"data": {
"detections": [
[
{
"language": "<string>",
"confidence": 123,
"isReliable": true
}
]
]
}
}