Detect the language of a text
POST
/translate/detect
curl \
-X POST https://api.itsrose.rest/translate/detect \
-H "Content-Type: application/json" \
-d '{"text":"Hello, world!"}'
Request examples
{
"text": "Hello, world!"
}
Response examples (200)
{
"status": true,
"message": "success",
"result": {
"lang": "string"
}
}
Response examples (400)
{
"status": false,
"message": "string",
"result": {}
}
Response examples (401)
{
"status": false,
"message": "string",
"result": {}
}
Response examples (500)
{
"status": false,
"message": "string",
"result": {}
}