---
title: "POST /:analyze-text"
method: POST
path: "/:analyze-text"
---

# POST /:analyze-text

`POST /:analyze-text`

Request text analysis over a collection of documents.

## Query parameters

- `api-version` string, required
- `showStats` boolean

## Request body

- AnalyzeTextTask — Collection of documents to analyze and a single task to execute.
  - `kind` 'SentimentAnalysis' | 'EntityRecognition' | 'PiiEntityRecognition' | 'KeyPhraseExtraction' | 'LanguageDetection' | 'EntityLinking', required — The kind of the analyze-text tasks supported.

## Response `200`

The request has succeeded.

- AnalyzeTextTaskResult — The result object for the analyze task.
  - `kind` 'SentimentAnalysisResults' | 'EntityRecognitionResults' | 'PiiEntityRecognitionResults' | 'KeyPhraseExtractionResults' | 'LanguageDetectionResults' | 'EntityLinkingResults', required — The kind of the response object returned by the analyze-text task.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/cognitiveservices-languageanalyzetext.md) · [All operations](https://skmtc.net/azure/apis/cognitiveservices-languageanalyzetext/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/cognitiveservices-languageanalyzetext/revisions/87a54ae2fce6/schema)
