Skip to content
POST AI agent ready /v1/text/language

Language Detection API - Free Text Identifier

Analyzes a text string and returns the detected language with an ISO 639-1 code and a confidence score. Supports over 50 languages including English, Spanish, French, German, Chinese, Japanese, Korean, Arabic, and Hindi.

Parameters

stringrequired

The text whose language you want to detect.

Code examples

curl -X POST https://api.botoi.com/v1/text/language \
  -H "Content-Type: application/json" \
  -d '{"text":"Bonjour, comment allez-vous aujourd'hui?"}'

When to use this API

Route support tickets by language

Detect the language of incoming support messages and assign them to the appropriate language-specific team automatically.

Auto-select locale in a multilingual app

Detect the language of user-provided content to pre-select the correct locale or translation settings.

Filter content by language in a moderation pipeline

Identify the language of user-generated posts so you can apply language-specific moderation rules or profanity filters.

Frequently asked questions

How much text is needed for accurate detection?
A single sentence (15+ words) typically gives high confidence. Short phrases or single words may produce lower confidence scores.
What languages are supported?
Over 50 languages including all major European, Asian, and Middle Eastern languages. The response uses ISO 639-1 two-letter codes.
Can it detect multiple languages in the same text?
The API returns the dominant language. For mixed-language documents, split the text into paragraphs and detect each one separately.
How is the confidence score calculated?
Confidence ranges from 0 to 1 and reflects how closely the text matches the statistical profile of the detected language. Scores above 0.9 indicate strong matches.

Get your API key

Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.