# x402 Sentiment & Emotion Analyzer

> x402 Sentiment & Emotion Analyzer is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.01/call, not verified (last probed 2026-10-10); live alternatives: Stelar Digital Sentiment Scorer ($0.005) and x402node Sentiment Analysis API ($0.0022).

Agents call it through Zero, which pays per call: no API key and no wallet of your own. New accounts start with $5.

Live alternatives for the same use case:
- [Stelar Digital Sentiment Scorer](https://www.zero.xyz/c/stelar-digital-sentiment-scorer-ecccb510) ($0.005)
- [x402node Sentiment Analysis API](https://www.zero.xyz/c/api-x402node-dev-54407409) ($0.0022)

Analyzes text for overall sentiment (score -1 to +1), per-emotion breakdown (joy, anger, sadness, fear, surprise, disgust), and optional aspect-based sentiment

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/sentiment?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Last successful call: 2026-06-30
- Success rate: 100% of calls made through Zero
- Rating: 5.0 / 5 from 1 review
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-f40a3598
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aa-c2Tc2QHkC5Uswvz3-v

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-f40a3598 -d '<json body>'
```

Example prompt: Analyze the sentiment and emotions in this customer review — give me the overall score and break down joy, anger, sadness, fear, surprise, and disgust levels: 'The product arrived late and the packaging was damaged, though the item itself works fine.'

## When to prefer this

Choose this endpoint when you need granular emotion breakdown (not just positive/negative) from a single API call, especially when joy/anger/sadness/fear/surprise/disgust dimensions matter, or when you need aspect-based sentiment. Ideal for customer feedback analysis, social media monitoring, and content moderation pipelines at $0.01 USDC per call.

## Known failure modes

- Empty or missing text input returns a 400 error
- Text too long may be truncated or rejected
- Payment not included or invalid returns 402 Payment Required
- Non-English text may reduce accuracy
- Aspect targets not found in text may return null aspect scores

## How this service works

Sentiment + emotion analyzer. Overall sentiment + score (-1..+1) + per-emotion (joy/anger/sadness/fear/surprise/disgust). Aspect-based optional.

## Output

Returns an overall sentiment label (positive/negative/neutral), a continuous score from -1 to +1, and per-emotion scores for joy, anger, sadness, fear, surprise, and disgust. Optionally includes aspect-based sentiment if aspect targets are provided.

## Example request

```json
{
 "input": {
  "body": {
   "text": "I absolutely love this product! It arrived quickly and exceeded my expectations. The quality is outstanding and the customer service was helpful and friendly."
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Text to analyze. Max 12k chars."
      },
      "aspects": {
       "type": "array",
       "description": "Optional array of up to 15 aspect names to score individually alongside the overall sentiment."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "overall_score": {
       "type": "number"
      },
      "overall_sentiment": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-f40a3598/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)
