---
title: "The API returns the detected language and a numeric score between 0 and 1."
method: POST
path: "/languages"
tags: ["Detect Language"]
---

# The API returns the detected language and a numeric score between 0 and 1.

`POST /languages`

Scores close to 1 indicate 100% certainty that the identified language is true. A total of 120 languages are supported.

## Request body

- BatchInput
  - `documents` Input[]
    - `id` string — Unique, non-empty document identifier.
    - `text` string

## Response `200`

A successful call results in the detected language with the highest probability for each valid document

- LanguageBatchResult
  - `documents` LanguageBatchResultItem[]
    - `id` string — Unique document identifier.
    - `detectedLanguages` DetectedLanguage[] — A list of extracted languages.
      - `name` string — Long name of a detected language (e.g. English, French).
      - `iso6391Name` string — A two letter representation of the detected language according to the ISO 639-1 standard (e.g. en, fr).
      - `score` number, double — A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true.
  - `errors` ErrorRecord[]
    - `id` string — Input document unique identifier the error refers to.
    - `message` string — Error message.

## Other responses

- `default` — Error Response

---

[API](https://skmtc.dev/azure/apis/text-analytics-client.md) · [All operations](https://skmtc.dev/azure/apis/text-analytics-client/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/text-analytics-client/revisions/d82ca1bb88d0/schema)
