Sentiment polarity
positive / negative / neutral label with confidence score (0-1).
Detect positive, negative or neutral sentiment with polarity score and star rating
You send one text and the service classifies its sentiment polarity (positive, negative, or neutral). Returns a label, confidence score, polarity (-1 to +1), a star rating string ("1 stars" through "5 stars"), an is_positive boolean, and the auto-detected language. Synchronous.
positive / negative / neutral label with confidence score (0-1).
Continuous polarity from -1 (very negative) to +1 (very positive).
1-5 star interpretation as a string (e.g. "5 stars").
The detected language is included in the result.
Classify customer reviews by sentiment for dashboards and alerts.
Monitor mentions and comments for positive/negative trends.
Flag negative messages in support queues for fast response.
Input
texts: array (in practice 1 element — see Important Notes)
Output
results[0] with label, score, stars, is_positive, polarity, language
Prerequisites
POST a single-element texts array. The service returns one result with label, score, stars, is_positive, polarity and language.
{
"texts": ["The product arrived quickly and works great!"]
}Response
{
"status": "success",
"data": {
"results": [
{
"label": "positive",
"score": 0.9366,
"stars": "5 stars",
"is_positive": true,
"polarity": 1.0,
"language": "en",
"scores": null
}
]
}
}Field name is texts (plural), not text. Body must be a JSON array even for a single text.
Detect positive/negative/neutral sentiment with polarity, star rating and confidence. Auto-detects language.
/v1/proxy/text-sentiment
Billed per request.
| Service | Unit | Price |
|---|---|---|
| Sentiment Analysis | item | $0.002/request |
A: You sent more than one text in the texts array. Reduce to a single element until the upstream is fixed.
A: Not currently. The aspects field is accepted but ignored by the upstream.
A: A continuous value from -1 (most negative) to +1 (most positive). 0 is neutral.
1.2 (2026-04-29)
1.1 (2026-02-23)
1.0 (2026-01-26)