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;
Detect Text Language
Annual Subscription
$49$99
Try it for free!
Sign in to get a trial key and test all APIs.
Sign In
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

NameTypeIs RequiredDefault ValueRemark
appkeystringtrueYOUR_APPKEYObtained after payment
contentstringtrueText content to analyze

API Response Parameters

NameTypeRemark
LanguagestringDetected language name
LanguageAbbrstringLanguage code such as en, fr, or zh
ProbabilitynumberConfidence score of the detected language

API Response Status Codes

Status CodeExplanation of Status CodeRemarks
200Request processed successfully.Some endpoints expose a separate application-level status field in the response body, such as `dataStatus.statusCode`.
400Invalid request parameters or request format.Check required fields, data types, and request body format.
401Missing or unknown application key.Provide a valid `appkey` with the request.
403The application key is recognized but access is not allowed.The key may be expired, inactive, or not permitted for the requested API.
429Request rate or trial usage limit exceeded.Reduce concurrency or retry after the limit window resets.
500Internal service error.Retry later or contact support if the error persists.
503Upstream service unavailable.Retry later; the requested upstream dependency is temporarily unavailable.

Code Snippets

Others also bought