# AgentPay Sentiment Analysis

> AgentPay Sentiment Analysis is a paid API for AI agents from agentpay.help, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Analyzes text to determine sentiment (positive/negative/neutral), detected emotions, keywords, and confidence score via pay-per-call USDC micropayment

## Facts

- Endpoint: POST https://agentpay.help/v1/sentiment
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentpay-sentiment-analysis-7f86042e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_14mU4DWwNe_Nbkd1ndpTw

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 agentpay-sentiment-analysis-7f86042e -d '<json body>'
```

Example prompt: Can you analyze the sentiment of this customer review and tell me if it's positive, negative, or neutral along with the emotions and keywords you detect: 'The onboarding was seamless but the pricing feels a bit steep for small teams.'

## When to prefer this

Choose this endpoint when you need quick, pay-as-you-go sentiment analysis with no account setup or API key management — ideal for agents that process sporadic or bursty text analysis tasks and want to pay micro-amounts per call in USDC rather than committing to a subscription. Prefer it over heavyweight NLP APIs when simplicity and frictionless micropayment billing matter more than fine-grained model customization.

## Known failure modes

- Insufficient USDC payment results in 402 Payment Required response
- Empty or missing text input returns validation error
- Very short or ambiguous text may yield low confidence score
- Non-English text may produce inaccurate sentiment or emotion labels
- Network timeout if text is extremely long

## How this service works

Pay-per-call AI services via the 402 Payment Required protocol. No accounts, no API keys — just USDC on Base.

## Output

Returns a JSON object with: 'sentiment' (positive/negative/neutral string), 'emotions' (array of detected emotion labels like 'joy' or 'anger'), 'keywords' (array of key terms extracted from the text), and 'confidence' (float 0–1 indicating model certainty).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 5000,
   "minLength": 10,
   "description": "Text to score"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "emotions": [
   "satisfaction",
   "trust"
  ],
  "keywords": [
   "support",
   "impressed",
   "turnaround"
  ],
  "sentiment": "positive",
  "confidence": 0.94
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentpay-sentiment-analysis-7f86042e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentpay.help](https://www.zero.xyz/host/agentpay.help/llms.txt)
