Detect Language
Detects text language
- Authentication
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Text Analysis
- Documentation / URL
- https://detectlanguage.com/
Overview
Detect Language identifies the language of text — 160+ languages with confidence scores. Auth is a free API key (an invalid key returns 401 with {"error":{"code":1,"message":"Invalid API key"}} — verified).
Quick Start
Detect (replace YOUR_KEY):
curl "https://ws.detectlanguage.com/0.2/detect?q=hello+world" \
-H "Authorization: Bearer YOUR_KEY"
{
"data": {
"detections": [ { "language": "en", "isReliable": true, "confidence": 99.8 } ]
}
}
With text in the body:
curl -X POST "https://ws.detectlanguage.com/0.2/detect" \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"q": "Bonjour le monde"}'
Authentication
- Register at detectlanguage.com → free API key.
- Send it as the
Authorization: Bearer YOUR_KEYheader (invalid key → 401, verified).
Rate Limits & Notes
- Free tier: ~10,000 characters/day (check the docs); paid plans scale.
- Detects 160+ languages; results include
confidenceandisReliable. - Batch and user-agent endpoints available.
FAQ
Is Detect Language free? Free tier with a daily character allowance; more is paid.
How do I get a key? Register at detectlanguage.com — the key is emailed.
What’s the auth style?
Authorization: Bearer header (verified).
More in Text Analysis
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| apilayer languagelayer Language Detection JSON API supporting 173 languages | OAuth | Yes | Unknown | ↗ |
| Audexum Text-to-speech REST API with 43 voices and 33 languages | API Key | Yes | Yes | ↗ |
| Aylien Text Analysis A collection of information retrieval and natural language APIs | API Key | Yes | Unknown | ↗ |
| Cloudmersive Natural Language Processing Natural language processing and text analysis | API Key | Yes | Yes | ↗ |
| Code Detection Detect, label, format and enrich the code in your app or in your data pipeline | OAuth | Yes | Unknown | ↗ |