Detect the language of a given text. Returns the language code and human-readable name. Useful for routing content to the appropriate translation pipeline or for analytics on multilingual datasets.
HTTP Request
| |
Parameters
This endpoint has no query parameters.
Request Body
Send the text to analyze as the raw request body with Content-Type: text/plain.
| |
Response
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | Whether the request was successful |
data.language | string | Detected language code |
data.language_name | string | Human-readable name of the detected language |
Code Examples
| |
| |
| |
Related Endpoints
- Translate — Translate text with automatic language detection
- Batch Translate — Translate multiple strings in a single request