Bestseller
Language Detection Text Processing NLP
Detect Text Language
Detect the most likely language of a text snippet and return ranked language candidates with confidence scores.
Data & API Features
Detect the language of short or long text content;
Return ranked language candidates with confidence scores;
Useful for multilingual routing, moderation, and localized experiences;
Easy to integrate into content pipelines, forms, and chatbot flows;
Support global user input without maintaining your own language classifier;

Annual Subscription
$49$99
Try it for free!
Sign In Sign in to get a trial key and test all APIs.
Secure payment by Stripe
API Document
HTTP Protocol:HTTPS
HTTP Method:POST
HTTP Endpoint:https://api.gugudata.io/v1/text/detectlanguage
Response Type:application/json; charset=utf-8
DEMO Endpoint:https://api.gugudata.io/v1/text/detectlanguage/demo
Live Demo:Try Interactive Demo
Full API Docs:developers.gugudata.io
API Request Parameters
| Name | Type | Is Required | Default Value | Remark |
|---|---|---|---|---|
| appkey | string | true | YOUR_APPKEY | Obtained after payment |
| content | string | true | Text content to analyze |
API Response Parameters
| Name | Type | Remark |
|---|---|---|
| Language | string | Detected language name |
| LanguageAbbr | string | Language code such as en, fr, or zh |
| Probability | number | Confidence score of the detected language |
API Response Status Codes
| Status Code | Explanation of Status Code | Remarks |
|---|---|---|
| 200 | Request processed successfully. | Some endpoints expose a separate application-level status field in the response body, such as `dataStatus.statusCode`. |
| 400 | Invalid request parameters or request format. | Check required fields, data types, and request body format. |
| 401 | Missing or unknown application key. | Provide a valid `appkey` with the request. |
| 403 | The application key is recognized but access is not allowed. | The key may be expired, inactive, or not permitted for the requested API. |
| 429 | Request rate or trial usage limit exceeded. | Reduce concurrency or retry after the limit window resets. |
| 500 | Internal service error. | Retry later or contact support if the error persists. |
| 503 | Upstream service unavailable. | Retry later; the requested upstream dependency is temporarily unavailable. |



