---
title: "POST /contentmoderator/moderate/v1.0/ProcessText/DetectLanguage"
method: POST
path: "/contentmoderator/moderate/v1.0/ProcessText/DetectLanguage"
tags: ["TextModeration"]
---

# POST /contentmoderator/moderate/v1.0/ProcessText/DetectLanguage

`POST /contentmoderator/moderate/v1.0/ProcessText/DetectLanguage`

This operation will detect the language of given input content. Returns the <a href="http://www-01.sil.org/iso639-3/codes.asp">ISO 639-3 code</a> for the predominant language comprising the submitted text. Over 110 languages supported.

## Headers

- `Content-Type` 'text/plain' | 'text/html' | 'text/xml' | 'text/markdown', required

## Response `200`

The detected language result.

- DetectedLanguage — Detect language result.
  - `DetectedLanguage` string — The detected language.
  - `Status` Status — Status properties.
    - `Code` integer — Status code.
    - `Description` string — Status description.
    - `Exception` string — Exception status.
  - `TrackingId` string — The tracking id.

## Other responses

- `default` — Error response.

---

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