Language Detection
This API detects the language of the provided text.
Header Parameters
Content-Type string
The content type should be application/json
Example: application/json
Authorization string required
API key for authorization
application/json
Request Body
platform string
Possible values: [jiotranslate
, google
]
Platform used for detection
text string required
The text to detect the language of.
Responses
- 200
- 400
- 401
- 422
Success
application/json
Schema
Example (from schema)
Example
Schema
detected_language string
The detected language.
detected_language_code string
The detected language code.
{
"detected_language": "string",
"detected_language_code": "string"
}
{
"detected_language": "English",
"detected_language_code": "en"
}
Bad Request
application/json
Schema
Example (from schema)
Example
Schema
status string
Status of the API response.
message string
Error message detailing why the request was bad.
{
"status": "failed",
"message": "Bad Request"
}
{
"status": "failed",
"message": "Bad Request"
}
Unauthorized
application/json
Schema
Example (from schema)
Example
Schema
status string
Status of the API response.
message string
Error message detailing why the request was unauthorized.
{
"status": "failed",
"message": "Unauthorized"
}
{
"status": "failed",
"message": "Unauthorized"
}
Unprocessable Entity
application/json
Schema
Example (from schema)
Example
Schema
customCode integer
Custom error code.
message string
Error message detailing why the request was unprocessable.
errorsArray string[]
Array of validation errors.
{
"customCode": 422,
"message": "Validation Error",
"errorsArray": []
}
{
"customCode": 422,
"message": "Validation Error",
"errorsArray": []
}
Loading...