Language Detection & Transliteration API
FreemiumDetect the language of any text (55 languages), transliterate Indian scripts (नमस्ते → namaste) and identify writing scripts.
Documentation
Detect the language of any text (55 languages), transliterate Indian scripts (नमस्ते → namaste) and identify writing scripts.
What you get
- Language detection for 55 languages, with confidence
- Batch detection — up to 100 texts
- Transliteration between Devanagari, Bengali, Tamil, Telugu, Gujarati and other Indian scripts and Roman (IAST, ITRANS…)
- Script detection — which writing systems a text uses
Great for content moderation, routing support tickets, search, chat apps and Indian-language products.
Quick start
Subscribe to a plan (the Basic plan is free), then call the API at https://language-detection.p.apihiver.com with your key in the X-API-Key header:
curl -X POST "https://language-detection.p.apihiver.com/v1/detect" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Bonjour tout le monde"}'Endpoints
| Method | Path | What it does |
|---|---|---|
POST | /v1/detect | Detect the language of a text |
POST | /v1/detect/batch | Detect languages for up to 100 texts |
GET | /v1/languages | Supported languages |
POST | /v1/transliterate | Transliterate between Indian scripts and Latin (e.g. नमस्ते → namaste) |
POST | /v1/script | Which writing systems (scripts) a text uses, with proportions |
Open the Endpoints tab to see every parameter, example request and example response, and to try the API live.
Errors
Every error is JSON with the same shape:
{"error": {"code": "INVALID_INPUT", "message": "text: Field required"}}| HTTP | Code | Meaning |
|---|---|---|
| 400 | INVALID_INPUT | A parameter is missing or has the wrong format — the message says which |
| 401 | UNAUTHORIZED | Missing or invalid X-API-Key |
| 429 | — | Plan quota or rate limit reached (see the X-RateLimit-* headers) |
| 502 / 503 / 504 | — | A data source or the API server is temporarily unavailable — retry after a few seconds |
Data & privacy
Data comes from langdetect and indic-transliteration, running on our servers.
Language Detection & Transliteration API FAQ
- Is the Language Detection & Transliteration API free?
- Yes. The Basic plan is free and includes 500 requests per month — no card needed. Paid plans start at ₹299 per month for 10,000 requests.
- How much does the Language Detection & Transliteration API cost?
- Basic: free for 500 requests; Pro: ₹299/month for 10,000 requests; Ultra: ₹999/month for 50,000 requests; Mega: ₹2,499/month for 2,00,000 requests. Billing is monthly and you can cancel any time.
- How do I use the Language Detection & Transliteration API?
- Subscribe to a plan on APIHiver, create an API key in the Console, then send requests to https://language-detection.p.apihiver.com with your key in the X-API-Key header. You can also try every endpoint in the browser playground first.
- What endpoints does the Language Detection & Transliteration API have?
- It has 5 endpoints: Detect the language of a text (POST /v1/detect); Detect languages for up to 100 texts (POST /v1/detect/batch); Supported languages (GET /v1/languages); Transliterate between Indian scripts and Latin (e.g. नमस्ते → namaste) (POST /v1/transliterate); Which writing systems (scripts) a text uses, with proportions (POST /v1/script).
- What are the Language Detection & Transliteration API rate limits?
- Basic: 2 requests per second; Pro: 5 requests per second; Ultra: 10 requests per second; Mega: 20 requests per second. Monthly quotas depend on the plan; every response includes X-RateLimit headers showing what's left.
- Can I use one API key for the Language Detection & Transliteration API and other APIs?
- Yes. One APIHiver key works for every API you subscribe to, so you don't need a separate account or key per provider.
Related APIs
QR Code Generator & Reader API
OthersBy Super Admin · Updated 1w ago
Create QR codes for links, text, UPI payments, Wi-Fi logins and contact cards (PNG/SVG, custom colours) and read QR codes from images.
Public Holidays API
TravelBy Super Admin · Updated 1w ago
Public holidays for 150+ countries — including Indian states — plus 'is it a holiday?', upcoming holidays and working-day counts.
OCR API — Image to Text
OCRBy Super Admin · Updated 1w ago
Extract text from images and scans in English, Hindi and Marathi, and pull out emails, phone numbers, URLs, PAN and GSTIN.
Phone Number Validation API
SMSBy Super Admin · Updated 1w ago
Validate and format phone numbers for 240+ countries: valid or not, mobile or landline, carrier, region, and E.164 format.
Currency Exchange Rates API
FinanceBy Super Admin · Updated 1w ago
Daily exchange rates for 30 currencies from the European Central Bank: latest, historical, conversion, time series and % change.
IFSC, GSTIN & UPI Validation API (India)
PaymentsBy Super Admin · Updated 1w ago
Validate Indian payment details — IFSC (with bank and branch), GSTIN, UPI ID format — plus IBAN and card BIN checks.
Endpoints
5 endpoints — full list is in the sidebar on larger screens.