# x402 Sentiment Analysis API

> x402 Sentiment Analysis API is a paid API for AI agents from x402-ai-scraper.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-02).

Analyzes the sentiment of a given text string and returns a sentiment classification, payable per-call via x402 micropayments.

## Facts

- Endpoint: POST https://x402-ai-scraper.vercel.app/api/sentiment?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-sentiment-analysis-api-197c1af0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__IBZNqjODLeg1f1noq5zO

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-sentiment-analysis-api-197c1af0 -d '<json body>'
```

Example prompt: Can you analyze the sentiment of this review and tell me if it's positive, negative, or neutral: 'The product arrived quickly and worked perfectly, but the packaging was a bit flimsy'?

## When to prefer this

Choose this endpoint when you need pay-per-use, serverless sentiment analysis without a subscription — ideal for sporadic or agent-driven workloads where x402 micropayments are already integrated. Best for single-text classification at low per-call cost rather than bulk batch processing through a traditional API.

## Known failure modes

- Empty or missing text field returns a validation error
- Extremely long text may be truncated or rejected
- Non-English text may produce unreliable results
- Payment failure results in a 402 response blocking execution
- Ambiguous or sarcastic text may be misclassified

## How this service works

Pay-per-execution serverless text parsing pipeline tools for autonomous software agents.

## Output

The endpoint returns a sentiment classification (e.g. positive, negative, neutral) for the submitted text, potentially along with a confidence score or polarity value. Results are delivered synchronously per call, with each call costing $0.02 USDC via x402 micropayment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-sentiment-analysis-api-197c1af0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-ai-scraper.vercel.app](https://www.zero.xyz/host/x402-ai-scraper.vercel.app/llms.txt)
