v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1484423422.2 KB

Inspects the input text and returns a sentiment analysis for each entity identified in the text.

For more information about targeted sentiment, see Targeted sentiment.

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

Headers

X-Amz-Target'Comprehend_20171127.DetectTargetedSentiment' required

Request body

Textstring password required

A UTF-8 text string. The maximum string length is 5 KB.

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

The language of the input documents. Currently, English is the only supported language.

Response

Success