The Language Detection API is a tool that uses machine learning algorithms to automatically identify the language of a given piece of text. The API can process a wide variety of text input, including short phrases, sentences, and full documents, and it can detect a wide range of languages, including English, Spanish, French, German, Chinese, and many others.
To use the API, developers send an HTTP request to a specified endpoint, including the text to be analyzed as well as any necessary authentication information. The API then processes the text and returns a response indicating the detected language, along with a confidence score. The confidence score reflects the API's level of certainty in its detection, and can be used to determine how likely it is that the detection is accurate.
The Language Detection API can be integrated into a wide range of applications, including natural language processing, machine translation, and text-to-speech systems. It can also be used to automatically classify text data, such as social media posts or customer feedback, by language, making it easier to understand and analyze.
{"confidence":0.862168675288558,"lang":"en","predictions":[{"lang":"en","prob":0.8731940388679504},{"lang":"de","prob":0.011025363579392433},{"lang":"id","prob":0.006528798956423998},{"lang":"zh","prob":0.004763109143823385},{"lang":"te","prob":0.004366433247923851}],"prob":0.8731940388679504}
curl --location --request POST 'https://zylalabs.com/api/928/language+detection+api/746/detector' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"text": "This is an english text.",
"includePredictions": true
}'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The Language Detection API returns a JSON response containing a list of detected languages along with their ISO codes, names, and relevance scores. It also includes a status object indicating the request's success and remaining credits.
Key fields in the response include "language_list," which contains detected languages with "iso639-2," "iso639-3," "language," "name," and "relevance." The "status" field provides a code, message, and credit information.
The response data is structured as a JSON object. It includes a "language_list" array for detected languages and a "status" object for request details. Each language entry contains relevant identifiers and a relevance score.
The primary parameter for the Language Detection API is the text input, which should be included in the HTTP request. Additional parameters may include authentication tokens, but specific customization options are not detailed.
Data accuracy is maintained through advanced Natural Language Processing techniques and machine learning algorithms. Continuous training on diverse datasets helps improve detection capabilities for various languages.
Typical use cases include machine translation, text-to-speech systems, social media monitoring, customer service routing, search engine optimization, and content curation, enabling efficient language processing across applications.
Users can utilize the returned data by analyzing the "language_list" to determine the most relevant language for their text. The relevance score helps assess confidence in the detection, guiding further processing or actions.
Users can expect a list of languages sorted by relevance, with the highest relevance indicating the most likely detected language. The response will consistently include the status code and message, ensuring clarity on request outcomes.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
287ms
Service Level:
100%
Response Time:
1,164ms
Service Level:
100%
Response Time:
725ms
Service Level:
100%
Response Time:
1,273ms
Service Level:
100%
Response Time:
1,376ms
Service Level:
100%
Response Time:
1,658ms
Service Level:
100%
Response Time:
1,320ms
Service Level:
100%
Response Time:
728ms
Service Level:
100%
Response Time:
375ms
Service Level:
100%
Response Time:
501ms
Service Level:
100%
Response Time:
119ms
Service Level:
100%
Response Time:
1,191ms
Service Level:
100%
Response Time:
263ms
Service Level:
100%
Response Time:
127ms
Service Level:
100%
Response Time:
225ms
Service Level:
100%
Response Time:
1,571ms
Service Level:
100%
Response Time:
18,989ms
Service Level:
100%
Response Time:
2,466ms
Service Level:
100%
Response Time:
822ms
Service Level:
100%
Response Time:
300ms