# Text Statistics Analyzer

> Text Statistics Analyzer is a paid API for AI agents from x402-gateway-production-1f21.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Computes statistical metrics (word count, character count, sentence count, readability scores, etc.) from a submitted text string

## Facts

- Endpoint: POST https://x402-gateway-production-1f21.up.railway.app/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-statistics-analyzer-3cd9c1ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Tq5GB40CA3vAgLQAdMHPL

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-analyzer-3cd9c1ef -d '<json body>'
```

Example prompt: Can you analyze the statistics of this text — word count, character count, sentence count, and readability — for the following paragraph: 'The quick brown fox jumps over the lazy dog. It was a bright and sunny day in the valley.'?

## When to prefer this

Choose this endpoint when you need fast, deterministic text metrics (word count, character count, sentence count, readability) for a single text payload up to 250,000 characters, especially within machine-payable x402 micro-payment workflows where per-call pricing at $0.001 USDC is acceptable. Prefer this over heavyweight NLP APIs when you only need statistical measures rather than semantic understanding or entity extraction.

## Known failure modes

- Text exceeds 250,000 character limit — request rejected with validation error
- Empty or missing 'text' field in body — returns schema validation error
- Payment not included or insufficient — x402 payment required error returned
- Malformed JSON body — returns parse error
- Network timeout on Railway deployment — transient 5xx error

## How this service works

Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.

## Output

Returns a JSON object with computed text statistics such as word count, character count, sentence count, paragraph count, average word length, average sentence length, and readability metrics (e.g. Flesch-Kincaid score) derived from the submitted text.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "maxLength": 250000
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "ready"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-statistics-analyzer-3cd9c1ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production-1f21.up.railway.app](https://www.zero.xyz/host/x402-gateway-production-1f21.up.railway.app/llms.txt)
