# Text Sentiment Analysis

> Text Sentiment Analysis is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Analyzes English text to return a positive/negative/neutral label, compound sentiment score (-1 to 1), word shares, and optionally per-sentence scores with most positive and negative lines.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/text/sentiment?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-sentiment-analysis-f29c85bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8V6IugEdGjnRuyB3xW7nz

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 text-sentiment-analysis-f29c85bb
```

Example prompt: Can you check the sentiment of this customer review — 'The product looks great but delivery was a disaster and customer support was useless' — and give me the overall positive/negative/neutral label, the compound score, and break it down sentence by sentence?

## When to prefer this

Choose this endpoint when you need instant, rule-based sentiment classification of English text — reviews, posts, headlines, or support tickets — without the latency or cost of an LLM-based approach. Ideal for high-volume, low-latency pipelines where a compound score and word-share breakdown are sufficient. Prefer it over LLM sentiment when you want deterministic, reproducible results and per-sentence granularity at $0.002 per call.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Non-English text may produce inaccurate or unreliable scores since the model is English-only
- Very short or ambiguous text (e.g. single words) may yield low-confidence or neutral scores
- Extremely long texts may be truncated or slow to process
- Service unavailability on Render's free tier causing 503 errors after cold start

## How this service works

Sentiment of English text (reviews, posts, headlines): positive/negative/neutral label, compound score -1..1 and word shares, optionally per sentence with the most positive and negative lines. Rule-based, instant.

## Output

Returns a sentiment label (positive, negative, or neutral), a compound score between -1.0 and 1.0, positive/negative/neutral word share percentages, and optionally a per-sentence breakdown including the most positive and most negative individual sentences in the input.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "English text"
      },
      "per_sentence": {
       "type": "boolean",
       "description": "Score each sentence too"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-sentiment-analysis-f29c85bb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
