Language Detector API

POST

Identify the language behind any snippet of text.

Language Detector identifies the language of any submitted text string. It returns the primary language, its ISO 639-1 code, and candidate matches ranked by confidence scores.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/languagedetector
Body
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "primaryLanguage": "spanish",
    "primaryCode": "es",
    "confidenceLevel": "medium",
    "detectedLanguages": [
      {
        "language": "spanish",
        "confidence": 0.38471794871794873,
        "code": "es"
      },
      {
        "language": "portuguese",
        "confidence": 0.2946153846153846,
        "code": "pt"
      },
      {
        "language": "danish",
        "confidence": 0.2464615384615384,
        "code": "da"
      }
    ]
  }
}

About the Language Detector API

Language Detector works by analyzing the text and comparing it to a database of languages and ai models. It uses advanced algorithms to detect the language of the text and returns the language code and the confidence level.

What people use it for

Inbound Ticket Dispatch
When an international customer submits a support ticket, help desks inspect the text to route the ticket to native-speaking agents.
Voice Synthesizer Selection
To read articles aloud with correct accents, screen readers check the language code before choosing a matching text-to-speech voice model.
Search Stemmer Configuration
Tag document uploads with ISO language codes during ingest so search engines apply the correct grammatical stemming rules for each language.
Market Research Segmentation
Analytics teams group raw global survey responses by primary language before running regional sentiment and feedback models.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Language Detector

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Language Detector API.

Read the docs
What information does Language Detector return for a text snippet?
It returns the primary detected language name and its standard ISO 639-1 code. On paid plans, the response also includes a confidence level indicating whether certainty is high, medium, or low.
What would 50,000 language detections cost me?
At 2 credits per call, 50,000 detections use 100,000 credits, using half of the Starter plan's 200,000 monthly credits. That works out to about $0.0003 per detection or $0.30 per 1,000 calls. The Free plan provides 100 detections each month for testing.
Is the confidence level included on the Free plan?
No, the confidence level is a premium field reserved for paid plans. Free plan requests return the detected language name and ISO code, while any paid plan, starting with Starter, unlocks the confidence assessment.
Does the response use standard ISO language codes?
Yes, it returns the standard ISO 639-1 two-letter code for the primary detected language. This format can be plugged straight into localization settings, translation tools, or database columns.
Can I submit user-generated content like support tickets and reviews?
Yes, you can pass any string of text in the request payload. It is commonly used to triage incoming multilingual support tickets, sort customer reviews, and route content to language-specific moderation workflows.

Ready to build with Language Detector? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs