# Lang Detect Detect the language of the given text content. (Recommend for long text content) Endpoint: POST /text/nlp/langdetect Version: 2025-08-18T18:01:56Z Security: api_key ## Request fields (application/json): - `text` (string, required) The text content with UTF-8 text representation - `ctx` (object) Parameter content for language detection - `ctx.algo` (string) Algorithm used for langauge detection - `ctx.cache` (object) Cache Parameters - `ctx.cache.use-cache` (boolean) Whether use cache or not for language detection ## Response 200 fields (application/json): - `status` (object) response status - `status.success` (boolean) Response status - `status.code` (integer) Response status code - `result` (object) response body - `result.label` (string) The two letter language code - `result.conf` (number) The confidence score of the predicted language label ## Response 400 fields (application/json): - `status` (object) response status - `status.success` (boolean) Response status - `status.code` (integer) Response status code - `error` (object) error body - `error.cause` (string) Cause of error - `error.message` (string) Error Message