# demo-seller Text Stats

> demo-seller Text Stats is a paid API for AI agents from x402-kit-demo-seller.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-02).

Analyzes a text string and returns word count, sentence count, character count, and top word frequencies — pay-per-call via x402 USDC micropayment.

## Facts

- Endpoint: POST https://x402-kit-demo-seller.onrender.com/paid/text-stats?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/demo-seller-text-stats-53ca149b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_krjolHTaDpCOl9xioZJOt

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 demo-seller-text-stats-53ca149b -d '<json body>'
```

Example prompt: Can you give me the word count, sentence count, character count, and most frequent words in this paragraph: 'AI agents are transforming how software is built and deployed across industries'?

## When to prefer this

Choose this endpoint when you need fast, cheap, stateless text statistics (word count, sentence count, character count, top words) on a per-call basis with no API key or account signup required — especially useful in micropayment-native agent workflows using the x402 protocol. Best for lightweight content auditing, QA, or frequency analysis tasks where full NLP/ML pipelines are overkill.

## Known failure modes

- Empty or missing text body returns a validation error
- Payment not processed or insufficient USDC balance causes 402 Payment Required
- Malformed request body causes 400 Bad Request
- Service temporarily unavailable on render.com causes 503

## How this service works

Demo x402 seller built with the x402 Kit. Pay per call in USDC — no account, no API key.

## Output

Returns a JSON object with: total word count (integer), sentence count (integer), total character count (integer), and a ranked list of top words with their occurrence counts (array of {word, count} objects).

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "words": 6,
  "sentences": 1,
  "top_words": [
   {
    "word": "agents",
    "count": 1
   }
  ],
  "characters": 30
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/demo-seller-text-stats-53ca149b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-kit-demo-seller.onrender.com](https://www.zero.xyz/host/x402-kit-demo-seller.onrender.com/llms.txt)
