---
title: "Language Detection"
method: POST
path: "/language-detection"
tags: ["Text Analysis"]
---

# Language Detection

`POST /language-detection`

Identifies what language a text is written in. Only languages that our API supports can be analyzed.

Returned labels:
* language_code of the detected language

## Request body

- LanguageDetection[]
  - `id` string — id of the text.
  - `text` string, required — the text itself.

## Response `200`

Successful Response

- LanguagePredicted[]
  - `id` string — id of the post.
  - `detected_language` string, required — the detected language_code corresponding to the input text.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/symanto/apis/psycholinguistic-text-analytics.md) · [All operations](https://skmtc.net/symanto/apis/psycholinguistic-text-analytics/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/symanto/psycholinguistic-text-analytics/versions/d74e31f8c7cc/schema)
