GETDetect Language
https://api-language-detection.dataandapis.com/v1/detect
Query parameters
| Parameter | Example | |
|---|---|---|
| candidates | 3 | Optional |
| text | This is a simple English sentence for testing. | Required |
Example request
curl "https://api-language-detection.dataandapis.com/v1/detect?candidates=3&text=This%20is%20a%20simple%20English%20sentence%20for%20testing." \
-H "X-Api-Key: YOUR_API_KEY"{
"text_length": 47,
"detected": "eng",
"name": "English",
"reliable": true,
"candidates": [
{
"code": "eng",
"name": "English",
"score": 1
},
{
"code": "sco",
"name": "Scots",
"score": 0.8812
},
{
"code": "deu",
"name": "German",
"score": 0.7544
}
]
}



