v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1484423422.2 KB

Inspects a batch of documents and returns an inference of the prevailing sentiment, <code>POSITIVE</code>, <code>NEUTRAL</code>, <code>MIXED</code>, or <code>NEGATIVE</code>, in each one.

post/#X-Amz-Target=Comprehend_20171127.BatchDetectSentiment

Headers

X-Amz-Target'Comprehend_20171127.BatchDetectSentiment' required

Request body

TextListCustomerInputString[] required

A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size of each document is 5 KB.

LanguageCode'en' | 'es' | 'fr' | 'de' | 'it' | 'pt' | 'ar' | 'hi' | 'ja' | 'ko' | 'zh' | 'zh-TW' required

The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.

Response

Success