# Sentiment Analyzer by PDFExtractAPI

> Sentiment Analyzer by PDFExtractAPI is a paid API for AI agents from sentiment-analyzer.pdfextractapi.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Analyzes text to return sentiment classification, numeric score, confidence level, and detected emotions.

## Facts

- Endpoint: POST https://sentiment-analyzer.pdfextractapi.workers.dev/analyze
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sentiment-analyzer-by-pdfextractapi-c10c9524
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MTyW4johH16lvK1fQrLyu

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 sentiment-analyzer-by-pdfextractapi-c10c9524 -d '<json body>'
```

Example prompt: Analyze the sentiment of this customer review and give me the classification, score, confidence, and any detected emotions: 'The product arrived late and was damaged, but customer support was surprisingly helpful and resolved everything quickly.'

## When to prefer this

Choose this endpoint when you need a combined sentiment classification, numeric score, confidence measure, AND emotion detection in a single call. It is well-suited for processing individual text snippets up to 20,000 characters via a pay-per-call model ($0.01 USDC), making it ideal for low-volume or on-demand sentiment analysis without a subscription commitment.

## Known failure modes

- Text exceeds 20,000 character limit — request rejected or truncated
- Empty or missing 'text' field — validation error returned
- Non-UTF8 or malformed body — parse error
- Payment failure or insufficient USDC balance — x402 payment required error
- Service unavailable on Cloudflare Workers edge — 5xx error

## How this service works

Analyze the sentiment of text: classification, score, confidence, and detected emotions.

## Output

Returns a sentiment classification (e.g. positive, negative, neutral), a numeric sentiment score, a confidence value indicating certainty of the classification, and a list of detected emotions present in the text.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "text": {
       "type": "string",
       "description": "The text to analyze, max 20,000 characters."
      }
     },
     "required": [
      "text"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sentiment-analyzer-by-pdfextractapi-c10c9524/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sentiment-analyzer.pdfextractapi.workers.dev](https://www.zero.xyz/host/sentiment-analyzer.pdfextractapi.workers.dev/llms.txt)
