Language Identification API
Overview
The Language Identification (LID) API identifies the language (e.g., en-IN, hi-IN) and script (e.g., Latin, Devanagari) of the input text. It supports multiple Indian languages and scripts, making it ideal for multilingual text processing.
Detection Types
Detect the primary language and script of text input. Example: “Hello, how are you?” → language: en-IN, script: Latn
Automatic language detection for seamless integration with translation and preprocessing APIs.
Code Examples
Response Format
Supported Languages and Scripts
- en-IN: English
- hi-IN: Hindi
- bn-IN: Bengali
- gu-IN: Gujarati
- kn-IN: Kannada
- ml-IN: Malayalam
- mr-IN: Marathi
- od-IN: Odia
- pa-IN: Punjabi
- ta-IN: Tamil
- te-IN: Telugu
- Latn: Latin (Romanized script)
- Deva: Devanagari (Hindi, Marathi)
- Beng: Bengali
- Gujr: Gujarati
- Knda: Kannada
- Mlym: Malayalam
- Orya: Odia
- Guru: Gurmukhi
- Taml: Tamil
- Telu: Telugu
API Response Format
Supported languages: en-IN, hi-IN, bn-IN, gu-IN, kn-IN, ml-IN, mr-IN, od-IN, pa-IN, ta-IN, te-IN
Script Codes Reference
Error Responses
All errors return a JSON object with an error field containing details about what went wrong.
Error Response Structure
Error Codes Reference
Example Error Response
Error Handling Code Example
Check out our detailed API Reference to explore Language Identification and all available options.
For detailed pricing information and usage tiers, visit our pricing page.