# x402node Sentiment Analysis API

> x402node Sentiment Analysis API is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.0022/call, status unknown (last checked 2026-09-14, last successful call 2026-07-17).

Analyzes the sentiment of English text, returning a score, comparative score, mood label, and positive/negative word lists

## Facts

- Endpoint: GET https://api.x402node.dev/text/sentiment
- Price: $0.0022/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Last successful call: 2026-07-17
- 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/api-x402node-dev-54407409
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dXZREQCwktE86vofCdaek

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 api-x402node-dev-54407409
```

Example prompt: Can you analyze the sentiment of this review and tell me the overall score, mood, and which specific words are driving it positive or negative: 'The product looks great but shipping was painfully slow and customer support never responded'?

## When to prefer this

Choose this endpoint when you need fast, lexicon-based English sentiment scoring with explicit positive/negative word evidence — ideal for content moderation pipelines, review analysis, or social media monitoring where interpretability (seeing which words drove the score) matters and low latency per call is required. Best for straightforward opinion text rather than nuanced or sarcastic language.

## Known failure modes

- Non-English text may return inaccurate or empty word lists
- Very short or ambiguous text may yield a score of 0 with empty word lists
- Missing or empty request body returns an error
- Extremely long text may increase processing time
- Sarcasm and irony are not reliably detected by lexicon-based approaches

## How this service works

sentiment analysis, text sentiment, analyze sentiment, sentiment API, sentiment classifier, emotion detection, opinion mining, sentiment score. Analyze sentiment of any English text. Returns score (positive minus negative), comparative score per token, positive and negative word lists. For AI agents content moderation, review analysis, social media monitoring. Accepts payment on Base or Solana — either network works.

## Output

Returns a JSON object with an integer sentiment score (positive minus negative word count), a comparative score normalized per token, a mood string (e.g. 'positive'/'negative'/'neutral'), arrays of matched positive and negative words found in the text, and processing time in milliseconds.

## Example request

```json
{
 "text": "The product looks great but shipping was painfully slow and customer support never responded"
}
```

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Input text (required)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-54407409/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
