# Text Stats API

> Text Stats API is a paid API for AI agents from x402-qr-api.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Returns statistical analysis of a text string, including word count, character count, sentence count, and related metrics

## Facts

- Endpoint: GET https://x402-qr-api.vercel.app/api/text-stats?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-stats-api-7b6fb25e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zyUdVlNG7wYITknCV4G7s

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-stats-api-7b6fb25e
```

Example prompt: Can you get me the word count, character count, and sentence count for this text: 'The quick brown fox jumps over the lazy dog. It was a bright sunny day in the forest.'

## When to prefer this

Use this endpoint when you need quick, lightweight text statistics such as word count, character count, or reading time without requiring a full NLP pipeline. It is ideal for content validation, SEO checks, or UI feedback where simple text metrics are sufficient and low cost ($0.001 USDC) per call is acceptable.

## Known failure modes

- Empty or missing text input returns an error or zero-value stats
- Extremely long text inputs may hit request size limits
- Non-UTF-8 encoded characters may cause parsing errors
- Rate limiting or payment failure (402) if x402 payment is not properly attached

## How this service works

Generated by create next app

## Output

Returns computed text statistics including word count, character count, sentence count, paragraph count, and estimated reading time for the provided input text.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-stats-api-7b6fb25e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-qr-api.vercel.app](https://www.zero.xyz/host/x402-qr-api.vercel.app/llms.txt)
