# Text Statistics Counter

> Text Statistics Counter is a paid API for AI agents from x402render-u5vwpxpyua-uc.a.run.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns word, character, sentence, and line counts for a given text string

## Facts

- Endpoint: POST https://x402render-u5vwpxpyua-uc.a.run.app/text-stats
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-statistics-counter-24c77cad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h8at8zS2j_7UPMFWS7tMK

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-statistics-counter-24c77cad -d '<json body>'
```

Example prompt: How many words, characters, sentences, and lines are in this text: 'The quick brown fox jumps over the lazy dog. It was a bright and sunny day.'?

## When to prefer this

Choose this endpoint when you need multiple text metrics in a single call — word, character, sentence, and line counts simultaneously — rather than calculating them client-side or calling separate endpoints. Especially useful when the agent needs to validate content against length constraints or analyze text structure across multiple dimensions at once.

## Known failure modes

- Empty or missing 'text' field returns an error or zero counts
- Very large text payloads may be rejected or time out
- Non-string input types may cause schema validation errors
- Payment failure (HTTP 402) if USDC payment is not correctly provided

## How this service works

Word, character, sentence and line counts for text

## Output

Returns numeric counts for the input text across four dimensions: total word count, total character count (likely including and/or excluding spaces), total sentence count, and total line count. These metrics allow agents to measure text length, validate content limits, and analyze document structure.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-statistics-counter-24c77cad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402render-u5vwpxpyua-uc.a.run.app](https://www.zero.xyz/host/x402render-u5vwpxpyua-uc.a.run.app/llms.txt)
