API CodexAPI Codex
WebsiteDashboardGet API Key
  • Documentation
  • All APIs
  • Changelog
Resources
  • Docs Home
  • API Catalog
  • API Codex Website
Platform
  • Get a free API key
  • Dashboard
  • APIs & Pricing

© 2026 API Codex. All rights reserved.

Information
Other endpoints
    Detect language of query textgetDetect language of body textpost
Schemas
powered by Zudoku
Language Detection API
Language Detection API

Schemas


Alternative

code
​string · required

ISO 639-3 language code.

Example: por
name
​string · required

English language name, or the raw code if not mapped.

Example: Portuguese
score
​number · float · required

Match score in [0, 1] where higher is stronger.

Example: 0.913

DetectResult

text_length
​integer · required

Length of the analyzed text in characters.

Example: 52
language
​string · required

Top ISO 639-3 code, or und if undetermined.

Example: spa
language_name
​string · required

English name of the top language (falls back to the code).

Example: Spanish
reliable
​boolean · required

True when the top score is confident and the text is long enough; false for short/undetermined input.

Example: true
​Alternative[] · required

Up to 5 ranked candidate languages.

Error

error
​string · required

Error message

Example: Please provide a non-empty `text` query parameter.
On this page
  • Alternative
  • DetectResult
  • Error