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

Detect the language of arbitrary text across 187 languages using trigram-based detection (franc).

The API returns the top ISO 639-3 language code, a human-readable name, a reliability flag, and a ranked list of close alternatives — all in clean JSON. Detection runs entirely on a global edge network, so latency stays tiny no matter where your users are.

The API is forgiving by design: short, mixed, or ambiguous input is reported as und (undetermined) with reliable: false instead of throwing an error, so your pipeline never breaks. Only a missing or empty text value returns a 400.

Get a free API key at dash.apicodex.io.

Features:

  • Language Detection: Identify any of 187 languages by their ISO 639-3 code
  • Ranked Alternatives: Get up to 5 candidate languages with similarity scores
  • GET & POST: Quick query-string detection or JSON body for long, multiline text
  • Constrained Candidates: Restrict detection to a known set of languages with the only parameter
Servers
https://api.apicodex.io/language

API Codex