Detect Language API
ApyHub
50 atoms
Base tier
About
The Detect Language API analyzes the provided text and returns the identified language. Currently, the language detection API supports more than 50 languages.
Language detection can help automate data processing tasks by identifying the language of large volumes of text data. This can be useful in various industries including social media monitoring or online advertising, learning, and development, where identifying the language of user-generated content is essential. Using a language detection API inside an application can also help prevent security breaches by detecting text that is written in an unauthorized language. This can be particularly useful in the financial or legal industries, where compliance regulations require the use of specific languages.
Try out the API in the API playground and see how this free online language detector API can help you detect any language easily, save time, and reduce errors through a simple API call.
Supported languages: Esperanto, English, Russian, Mandarin, Spanish, Portuguese, Italian, Bengali, French, German, Ukrainian, Georgian, Arabic, Hindi, Japanese, Hebrew, Yiddish, Polish, Javanese, Korean, Bokmal, Danish, Swedish, Finnish, Turkish, Dutch, Hungarian, Czech, Greek, Bulgarian, Belarusian, Marathi, Kannada, Romanian, Slovene, Croatian, Serbian, Macedonian, Lithuanian, Latvian, Estonian, Tamil, Vietnamese, Urdu, Thai, Gujarati, Uzbek, Punjabi, Azerbaijani, Indonesian, Telugu, Persian, Malayalam, Hausa, Oriya, Burmese, Bhojpuri, Maithili, Oromo, Kurdish, Malagasy, Saraiki, Nepali, Sinhalese, Khmer, Turkmen, Somali, Akan, Zulu, Haitian Creole, Uyghur, Africaans
API Playground
API Documentation
detect language
POST
https://api.apyhub.com/detect/language
Request example
Method:
POST
Content Type:
application/json
Request Body
Attribute | Type | Mandatory | Description |
---|---|---|---|
text | string | Yes | The text for which you want to detect the language, minimum 50 characters are required. |
Supported Languages
Sample Response
A successful request returns the data object with below mentioned attributes if the language is supported as shared in the list given above.
HTTP Response Codes
The method may return one of the following HTTP status codes:
Status Code | Description |
---|---|
200 | The request was successful. |
400 | Invalid input. |
401 | Required authentication information is either missing or not valid for the resource. |
500 | If any unexpected error occurs while processing the request. |
Authentication
All API requests to ApyHub services need to be authenticated. Currently we support
tokens
or basic authentication
mechanisms.
You can generate and view your existing credentials from your workspace settings (on the left side of the navbar) and go to “API Keys".Points to note:
- Credential secrets are generated on the fly and are not stored in plain text, so on generating a credential please save the secrets somewhere safe.
- Use the
apy-token
as the header parameter to pass the token. - Use the
Authorization
header to send the basic authentication credentials.
Error codes
To search for a specific error code, enter the code in the search box below. Alternatively, you can click on the button to view a complete list of all error codes.
Table of contents