# AllTheBot Sentiment Analysis

> AllTheBot Sentiment Analysis is a paid API for AI agents from api.zkrobotics.fr, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-09).

Classifies text as positive, negative, neutral, or mixed with a -1 to +1 score, confidence level, and short human-readable reason

## Facts

- Endpoint: GET https://api.zkrobotics.fr/x402/sentiment?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/allthebot-sentiment-analysis-b6c3c54a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M4NMgfgUZGz-0hxw41J2m

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 allthebot-sentiment-analysis-b6c3c54a
```

Example prompt: Can you analyze the sentiment of this review and tell me whether it's positive, negative, neutral, or mixed, along with a confidence score and a short reason: 'The product arrived quickly but the packaging was crushed and customer support never replied to my email.'

## When to prefer this

Choose this endpoint when you need fast, per-call sentiment scoring with a human-readable explanation, a numeric -1 to +1 score, and a confidence value — especially for multilingual reviews, tweets, or support tickets where explainability matters. Prefer it over bulk ML pipelines when you need pay-per-call pricing with no infrastructure setup.

## Known failure modes

- Missing 'text' query parameter returns an error
- Text exceeding 4000 characters may be rejected or truncated
- Non-UTF-8 or malformed text may cause unexpected classification
- Very short or ambiguous input may yield low confidence scores
- Network or payment failure returns a 402 or 5xx error

## How this service works

Pay-per-call APIs for AI agents over x402: token safety reports, Base and Ethereum on-chain reads, crypto prices, domain checks (DNS, WHOIS, SSL, email), finance data (FX, SEC), worldwide weather forecasts, France alerts, text AI, fun content. USDC on Base, no account, no API key.

## Output

Returns a JSON object with: a label ('positive', 'negative', 'neutral', or 'mixed'), a numeric score from -1 (most negative) to +1 (most positive), a confidence value between 0 and 1, and a short human-readable reason explaining the classification.

## 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",
       "maxLength": 4000
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "result": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "label": "mixed",
   "score": -0.4,
   "reason": "Fast delivery is praised, but the damaged product and poor service dominate.",
   "confidence": 0.9
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/allthebot-sentiment-analysis-b6c3c54a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.zkrobotics.fr](https://www.zero.xyz/host/api.zkrobotics.fr/llms.txt)
