Language Detection API
string · requiredstring · requirednumber · float · requiredinteger · requiredstring · requiredstring · requiredboolean · required
Alternative
codeISO 639-3 language code.
Example: por
nameEnglish language name, or the raw code if not mapped.
Example: Portuguese
scoreMatch score in [0, 1] where higher is stronger.
Example: 0.913
DetectResult
text_lengthLength of the analyzed text in characters.
Example: 52
languageTop ISO 639-3 code, or und if undetermined.
Example: spa
language_nameEnglish name of the top language (falls back to the code).
Example: Spanish
reliableTrue 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.