# Agent Micro - Text Sentiment Analysis

> Agent Micro - Text Sentiment Analysis is a paid API for AI agents from agent-micro.annushka1190.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Analyzes the sentiment of a given text input and returns a sentiment classification result, paid per-call via USDC x402 micropayment.

## Facts

- Endpoint: POST https://agent-micro.annushka1190.workers.dev/v1/text/sentiment
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-micro-text-sentiment-analysis-0fced7d9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ky5cZ9ajYMTkjeyCEsAEW

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 agent-micro-text-sentiment-analysis-0fced7d9 -d '<json body>'
```

Example prompt: Can you analyze the sentiment of this customer review and tell me if it's positive, negative, or neutral: 'The product arrived on time and works perfectly, but the packaging was a bit damaged.'

## When to prefer this

Choose this endpoint when you need a cheap, fast, per-call sentiment classification for text within an AI agent pipeline and want to pay in USDC micropayments via x402 without a subscription. It is ideal for agents that need ad-hoc NLP sentiment scoring at sub-cent cost without setting up a full NLP service integration.

## Known failure modes

- Missing or empty 'input' field in request body returns a 400 validation error
- Payment not included or insufficient USDC via x402 returns a 402 Payment Required
- Non-JSON body or wrong Content-Type may cause a parse error
- Very short or ambiguous text may return low-confidence or unexpected sentiment labels
- Service unavailability on the Cloudflare Workers edge may return a 503

## How this service works

Advanced micro-tools for AI agents: cryptographic randomness, text analysis, math helpers, date arithmetic, web metadata, and IP intelligence. All under $0.01 per request, paid in USDC via x402.

## Output

Returns a JSON object with an 'ok' boolean and sentiment classification details for the submitted text — typically including a sentiment label (positive, negative, neutral) and optionally a confidence score or polarity value.

## 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": {
    "body": {
     "type": "object"
    },
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "const": "json"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-micro-text-sentiment-analysis-0fced7d9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-micro.annushka1190.workers.dev](https://www.zero.xyz/host/agent-micro.annushka1190.workers.dev/llms.txt)
