# PennyRail Text Statistics

> PennyRail Text Statistics is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Computes statistical metrics (character count, word count, sentence count, etc.) for a given input text string

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/text.stats--text-stats
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-text-statistics-66e7b538
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XBjztWu-aD9Zwv7f9YDqq

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 pennyrail-text-statistics-66e7b538 -d '<json body>'
```

Example prompt: Can you run text stats on this paragraph for me: 'The quick brown fox jumps over the lazy dog. It was a bright and sunny afternoon in the meadow.'

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call text statistics computation without setting up a dedicated NLP service. Ideal for lightweight word/character/sentence counting in automated pipelines where spinning up a full text-analysis library is overkill. Best suited for single-string inputs needing basic metrics rather than deep semantic analysis.

## Known failure modes

- Missing 'input' field returns a validation error
- Empty string input may return zero-value stats or an error
- Very large text payloads may time out or be rejected
- Payment failure (HTTP 402) if USDC balance is insufficient
- Malformed JSON body causes a 400-level error

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing computed text statistics such as word count, character count, sentence count, and potentially other readability or frequency metrics derived from the submitted text string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-text-statistics-66e7b538/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
