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.
Subscribe on RapidAPI
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
onlyparameter