Text Language Classifier API

The Text Language Classifier API accurately identifies the language of text, supports multiple formats, is scalable, reliable, and suitable for various applications.

About the API:  

The Text Language Classifier API designed to automatically identify and determine the language of a given text or character string. Using advanced algorithms and linguistic analysis, this API offers seamless integration into various applications and systems, providing accurate and reliable language detection capabilities.

Basically, the Text Language Classifier API works by analyzing the structural and grammatical patterns present in the provided text. Using statistical models and machine learning techniques, the API can discern the unique characteristics associated with different languages, allowing it to make informed predictions about the language in which the text is written.

One of the key strengths of the Text Language Classifier API lies in its ability to accurately identify a wide range of languages from around the world. Whether the text is written in a commonly spoken language, such as English, Spanish or in a less used language, such as Catalan, Bosnian. The API can effectively recognize and categorize language with a high degree of accuracy.

Additionally, the Text Language Classifier API is capable of handling text input of different lengths, from short sentences to long paragraphs. This flexibility allows developers to integrate language detection functionality into a wide range of applications, from simple text analysis tools to complex natural language processing systems.

The API is also designed to be highly scalable and support large volumes of text input with minimal latency. This scalability makes it ideal for deployment in environments where rapid language detection is required, such as real-time chat applications, social media monitoring platforms, or large-scale content moderation systems.

In short, the Text Language Classifier API allows you to automatically identify the language of a given text. With its comprehensive language support and accuracy, the API is suitable for a wide range of applications across various industries, allowing users to easily integrate language detection functionality into their applications and systems.

 

What this API receives and what your API provides (input/output)?

It will receive parameters and provide you with a JSON.

 

What are the most common uses cases of this API?

  1. Social media monitoring: language identification of user-generated content for sentiment analysis and moderation.

    Customer Service: Automatically detects the language of incoming messages to route them to the appropriate agents.

    Multilingual Websites: Determine the language of website visitors to provide content in their preferred language.

    Text translation services: pre-processing of text to determine the source language before starting the translation.

    Content moderation: Identify the language of user comments to filter inappropriate content.

     

Are there any limitations to your plans?

Basic Plan: 10 requests per second.

Pro Plan: 10 requests per second.

Pro Plus Plan: 10 requests per second.

Premium Plan: 10 requests per second.

Elite Plan: 20 requests per second.

Premiun Plan: 20 requests per second.

API Documentation

Endpoints


To use this endpoint you just have to run it and you will get the languages available to detect.



                                                                            
GET https://zylalabs.com/api/3547/text+language+classifier+api/3893/languages+available
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"name":"Afrikaans","code":"af","accuracy":0.7879901960784313,"datapoints":1632},{"name":"Amharic","code":"am","accuracy":1,"datapoints":3},{"name":"Aragonese","code":"an","accuracy":0.5,"datapoints":4},{"name":"Arabic","code":"ar","accuracy":0.9978312977970552,"datapoints":8761},{"name":"Assamese","code":"as","accuracy":0.8635416666666667,"datapoints":960},{"name":"Bashkir","code":"ba","accuracy":0.95,"datapoints":120},{"name":"Belarusian","code":"be","accuracy":0.9625779625779626,"datapoints":6253},{"name":"Bulgarian","code":"bg","accuracy":0.9869885139985642,"datapoints":11144},{"name":"Bengali","code":"bn","accuracy":1,"datapoints":1164},{"name":"Tibetan Standard","code":"bo","accuracy":1,"datapoints":20},{"name":"Breton","code":"br","accuracy":0.9543043655650755,"datapoints":2451},{"name":"Bosnian","code":"bs","accuracy":0.03597122302158273,"datapoints":139},{"name":"Catalan","code":"ca","accuracy":0.8833862433862434,"datapoints":4725},{"name":"Chechen","code":"ce","accuracy":0.7142857142857143,"datapoints":7},{"name":"Corsican","code":"co","accuracy":0.2,"datapoints":5},{"name":"Czech","code":"cs","accuracy":0.9898738838258307,"datapoints":10863},{"name":"Chuvash","code":"cv","accuracy":0.9543478260869566,"datapoints":460},{"name":"Welsh","code":"cy","accuracy":0.8917609046849758,"datapoints":619},{"name":"Danish","code":"da","accuracy":0.948035819334597,"datapoints":15299},{"name":"German","code":"de","accuracy":0.9998637230853094,"datapoints":22014},{"name":"Divehi","code":"dv","accuracy":1,"datapoints":15},{"name":"Greek","code":"el","accuracy":1,"datapoints":12039},{"name":"English","code":"en","accuracy":1,"datapoints":22428},{"name":"Esperanto","code":"eo","accuracy":0.999551594641556,"datapoints":17841},{"name":"Spanish","code":"es","accuracy":0.998134635430954,"datapoints":18227},{"name":"Estonian","code":"et","accuracy":0.9356153219233904,"datapoints":1227},{"name":"Basque","code":"eu","accuracy":0.9676558852950984,"datapoints":2999},{"name":"Finnish","code":"fi","accuracy":0.9990807767436516,"datapoints":17406},{"name":"French","code":"fr","accuracy":0.999523314265904,"datapoints":23076},{"name":"Western Frisian","code":"fy","accuracy":0.6635514018691588,"datapoints":107},{"name":"Irish","code":"ga","accuracy":0.9065743944636678,"datapoints":867},{"name":"Gaelic","code":"gd","accuracy":0.8966789667896679,"datapoints":542},{"name":"Galician","code":"gl","accuracy":0.5790679908326967,"datapoints":2618},{"name":"Gujarati","code":"gu","accuracy":1,"datapoints":57},{"name":"Manx","code":"gv","accuracy":0,"datapoints":6},{"name":"Hebrew","code":"he","accuracy":1,"datapoints":8616},{"name":"Hindi","code":"hi","accuracy":0.999627004848937,"datapoints":5362},{"name":"Croatian","code":"hr","accuracy":0.5333033303330333,"datapoints":2222},{"name":"Haitian","code":"ht","accuracy":0.06666666666666667,"datapoints":15},{"name":"Hungarian","code":"hu","accuracy":0.9996655891204994,"datapoints":17942},{"name":"Armenian","code":"hy","accuracy":0.9980694980694981,"datapoints":518},{"name":"Interlingua","code":"ia","accuracy":0.7500798636992866,"datapoints":18782},{"name":"Indonesian","code":"id","accuracy":0.949637217242851,"datapoints":9372},{"name":"Interlingue","code":"ie","accuracy":0.4718485301444943,"datapoints":2007},{"name":"Ido","code":"io","accuracy":0.48055077452667816,"datapoints":2905},{"name":"Icelandic","code":"is","accuracy":0.9803582652419862,"datapoints":6364},{"name":"Italian","code":"it","accuracy":0.9989632216522972,"datapoints":18326},{"name":"Japanese","code":"ja","accuracy":1,"datapoints":2169},{"name":"Javanese","code":"jv","accuracy":0.6461538461538462,"datapoints":260},{"name":"Georgian","code":"ka","accuracy":1,"datapoints":1973},{"name":"Kazakh","code":"kk","accuracy":0.9802867383512545,"datapoints":2232},{"name":"Khmer","code":"km","accuracy":0.9920844327176781,"datapoints":379},{"name":"Kannada","code":"kn","accuracy":1,"datapoints":118},{"name":"Korean","code":"ko","accuracy":1,"datapoints":482},{"name":"Cornish","code":"kw","accuracy":0.8779342723004695,"datapoints":426},{"name":"Kyrgyz","code":"ky","accuracy":0.8787878787878788,"datapoints":66},{"name":"Latin","code":"la","accuracy":0.9206085511934948,"datapoints":11437},{"name":"Luxembourgish","code":"lb","accuracy":0.5944700460829493,"datapoints":217},{"name":"Limburgish","code":"li","accuracy":0.3333333333333333,"datapoints":3},{"name":"Lao","code":"lo","accuracy":1,"datapoints":70},{"name":"Lithuanian","code":"lt","accuracy":0.9933501987712324,"datapoints":13835},{"name":"Latvian","code":"lv","accuracy":0.9597747385358005,"datapoints":1243},{"name":"Macedonian","code":"mk","accuracy":0.9959903214656066,"datapoints":14465},{"name":"Malayalam","code":"ml","accuracy":1,"datapoints":517},{"name":"Marathi","code":"mr","accuracy":0.9995220342223496,"datapoints":10461},{"name":"Maltese","code":"mt","accuracy":0.8076923076923077,"datapoints":52},{"name":"Burmese","code":"my","accuracy":1,"datapoints":216},{"name":"Dutch","code":"nl","accuracy":0.9934780393355752,"datapoints":19626},{"name":"Norwegian Nynorsk","code":"nn","accuracy":0.7990867579908676,"datapoints":657},{"name":"Occitan","code":"oc","accuracy":0.7679133170220203,"datapoints":2861},{"name":"Ossetian","code":"os","accuracy":0.9830508474576272,"datapoints":59},{"name":"Panjabi","code":"pa","accuracy":1,"datapoints":88},{"name":"Polish","code":"pl","accuracy":0.999718595227375,"datapoints":17768},{"name":"Portuguese","code":"pt","accuracy":0.9933082184990581,"datapoints":20174},{"name":"Romansh","code":"rm","accuracy":0.0625,"datapoints":16},{"name":"Romanian","code":"ro","accuracy":0.9886430678466077,"datapoints":13560},{"name":"Russian","code":"ru","accuracy":0.9997114663281205,"datapoints":17329},{"name":"Sanskrit","code":"sa","accuracy":0.7272727272727273,"datapoints":11},{"name":"Sinhala","code":"si","accuracy":1,"datapoints":9},{"name":"Slovak","code":"sk","accuracy":0.8263157894736842,"datapoints":4370},{"name":"Slovene","code":"sl","accuracy":0.6774193548387096,"datapoints":372},{"name":"Somali","code":"so","accuracy":0.21875,"datapoints":32},{"name":"Serbian","code":"sr","accuracy":0.8489699125537276,"datapoints":13494},{"name":"Sundanese","code":"su","accuracy":0.18181818181818182,"datapoints":11},{"name":"Swedish","code":"sv","accuracy":0.9886773875943551,"datapoints":12188},{"name":"Tamil","code":"ta","accuracy":1,"datapoints":205},{"name":"Telugu","code":"te","accuracy":1,"datapoints":102},{"name":"Tajik","code":"tg","accuracy":0.9666666666666667,"datapoints":30},{"name":"Thai","code":"th","accuracy":1,"datapoints":572},{"name":"Turkmen","code":"tk","accuracy":0.5710519377801213,"datapoints":3793},{"name":"Tagalog","code":"tl","accuracy":0.9737223456670853,"datapoints":10351},{"name":"Turkish","code":"tr","accuracy":0.9995983734123199,"datapoints":19919},{"name":"Tatar","code":"tt","accuracy":0.9680851063829787,"datapoints":8178},{"name":"Uyghur","code":"ug","accuracy":0.9991874322860238,"datapoints":3692},{"name":"Ukrainian","code":"uk","accuracy":0.9963598179908996,"datapoints":14285},{"name":"Urdu","code":"ur","accuracy":0.9906542056074766,"datapoints":963},{"name":"Vietnamese","code":"vi","accuracy":0.9996153846153846,"datapoints":13000},{"name":"Volapük","code":"vo","accuracy":0.8511166253101737,"datapoints":806},{"name":"Walloon","code":"wa","accuracy":0.3125,"datapoints":16},{"name":"Yoruba","code":"yo","accuracy":0.6,"datapoints":5},{"name":"Chinese","code":"zh","accuracy":1,"datapoints":568},{"name":"Yiddish","code":"yi"},{"name":"Uzbek","code":"uz"},{"name":"Swahili","code":"sw"},{"name":"Albanian","code":"sq"},{"name":"Sindhi","code":"sd"},{"name":"Sardinian","code":"sc"},{"name":"Quechua","code":"qu"},{"name":"Pashto","code":"ps"},{"name":"Oriya","code":"or"},{"name":"Norwegian","code":"no"},{"name":"Nepali","code":"ne"},{"name":"Malay","code":"ms"},{"name":"Mongolian","code":"mn"},{"name":"Malagasy","code":"mg"},{"name":"Komi","code":"kv"},{"name":"Kurdish","code":"ku"},{"name":"Guaraní","code":"gn"},{"name":"Persian","code":"fa"},{"name":"Bihari","code":"bh"},{"name":"Azerbaijani","code":"az"},{"name":"Avaric","code":"av"},{"code":"als"},{"code":"arz"},{"code":"ast"},{"code":"azb"},{"code":"bar"},{"code":"bcl"},{"code":"bpy"},{"code":"bxr"},{"code":"cbk"},{"code":"ceb"},{"code":"ckb"},{"code":"diq"},{"code":"dsb"},{"code":"dty"},{"code":"eml"},{"code":"frr"},{"code":"gom"},{"code":"hif"},{"code":"hsb"},{"code":"ilo"},{"code":"jbo"},{"code":"krc"},{"code":"lez"},{"code":"lmo"},{"code":"lrc"},{"code":"mai"},{"code":"mhr"},{"code":"min"},{"code":"mrj"},{"code":"mwl"},{"code":"myv"},{"code":"mzn"},{"code":"nah"},{"code":"nap"},{"code":"nds"},{"code":"new"},{"code":"pam"},{"code":"pfl"},{"code":"pms"},{"code":"pnb"},{"code":"rue"},{"code":"sah"},{"code":"scn"},{"code":"sco"},{"code":"sh"},{"code":"tyv"},{"code":"vec"},{"code":"vep"},{"code":"vls"},{"code":"war"},{"code":"wuu"},{"code":"xal"},{"code":"xmf"},{"code":"yue"}]
                                                                                                                                                                                                                    
                                                                                                    

Languages available - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/3547/text+language+classifier+api/3893/languages+available' --header 'Authorization: Bearer YOUR_API_KEY' 


    

To use this endpoint you must indicate a text and if you want to obtain a prediction about the detected language (true or false).



                                                                            
POST https://zylalabs.com/api/3547/text+language+classifier+api/3894/language+detection
                                                                            
                                                                        

Language detection - Endpoint Features

Object Description
Request Body [Required] Json
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"lang":"en","prob":0.9854544401168823,"confidence":0.983413940295577,"isReliable":true,"highAccuracyLanguage":true}
                                                                                                                                                                                                                    
                                                                                                    

Language detection - CODE SNIPPETS


curl --location --request POST 'https://zylalabs.com/api/3547/text+language+classifier+api/3894/language+detection' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
    "text": "This is my house",
    "includePredictions": false
}'

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Text Language Classifier API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

To use this API, users must indicate a text to identify the language.

The Text Language Classifier API designed to automatically identify and classify the language of a given text or character string.

There are different plans to suit all tastes, including a free trial for a small number of requests, but your rate is limited to avoid abuse of the service.

Zyla provides a wide range of integration methods for almost all programming languages. You can use these codes to integrate with your project as you need.

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.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, refer to the ‘X-Zyla-API-Calls-Monthly-Remaining’ field in the response header. For example, if your plan allows 1000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

To see the maximum number of API requests your plan allows, check the ‘X-Zyla-RateLimit-Limit’ response header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The ‘X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
294ms

Category:


Related APIs