# Sentiment Analyzer & Emotion Classifier

> Sentiment Analyzer & Emotion Classifier is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Analyzes text to return overall sentiment (positive/negative/neutral) with a score from -1 to +1, plus per-emotion scores (joy, anger, sadness, fear, surprise, disgust) and optional aspect-based sentiment.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/sentiment-analysis
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-6faa6844
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-PL4UUn9HBXiRRL86NlW8

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-deployer-x402-deployer-workers-dev-6faa6844 -d '<json body>'
```

Example prompt: Analyze the sentiment and emotions in this customer review — give me the overall score from -1 to +1 plus per-emotion breakdown: "The product arrived on time but the packaging was disappointing and the instructions made me feel completely lost."

## When to prefer this

Use this endpoint when you need both a coarse sentiment polarity score AND fine-grained per-emotion classification (joy, anger, sadness, fear, surprise, disgust) in a single call, especially when aspect-based scoring is also needed. Prefer over simpler positive/negative classifiers when multi-dimensional emotional insight is required.

## Known failure modes

- Empty or missing text field returns 400 Bad Request
- Text too long may be truncated or rejected
- Payment not included or insufficient USDC returns 402 Payment Required
- Non-English text may yield lower accuracy or unexpected emotion scores
- Ambiguous or sarcastic text may produce misleading sentiment scores

## How this service works

Sentiment analysis API / sentiment analyzer / text sentiment classifier / emotion classifier / aspect-based sentiment. Scores arbitrary text with overall sentiment, score (-1 to +1), per-emotion labels (joy/anger/sadness/fear/surprise/disgust), and optional aspect-based scoring. Pure text analysis endpoint for product reviews, tickets, comments, and support logs.

## Output

Returns an overall sentiment label (positive/negative/neutral), a float score from -1 to +1, and a per-emotion map with scores for joy, anger, sadness, fear, surprise, and disgust. Optionally includes aspect-level sentiment scores when aspects are specified.

## Example request

```json
{
 "input": {
  "body": {
   "text": "I really enjoyed this movie. The plot was engaging and the acting was superb, though the ending felt a bit rushed."
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-6faa6844/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
