Detect language of query text
Detects the language of the text query parameter. Text shorter than the threshold or undetermined yields
language und with reliable false (not a 400). A missing or empty text returns 400.
query Parameters
textThe input string to analyze.
min_lengthfranc minLength threshold. Default 10, clamped to 1..1000. Text shorter than this is reported as und / not reliable.
Detect language of query text › Responses
Detection result.
text_lengthLength of the analyzed text in characters.
languageTop ISO 639-3 code, or und if undetermined.
language_nameEnglish name of the top language (falls back to the code).
reliableTrue when the top score is confident and the text is long enough; false for short/undetermined input.
Up to 5 ranked candidate languages.
Detect language of body text
Same detection logic as the GET variant but accepts a JSON body, useful for long or multiline text and for
constraining candidate languages via only. Body parse failure or a missing/empty text returns 400.
Detect language of body text › Request Body
textThe input string to analyze.
min_lengthfranc minLength threshold (clamped 1..1000).
onlyOptional ISO 639-3 codes restricting candidate languages.
Detect language of body text › Responses
Detection result.
text_lengthLength of the analyzed text in characters.
languageTop ISO 639-3 code, or und if undetermined.
language_nameEnglish name of the top language (falls back to the code).
reliableTrue when the top score is confident and the text is long enough; false for short/undetermined input.
Up to 5 ranked candidate languages.