# 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, readability scores, etc.) for a given input text string

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/text.stats--proven-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-5351174e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lMS9FdFyGuy0w2yPcGtlR

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-5351174e -d '<json body>'
```

Example prompt: Can you run text stats on this paragraph for me and tell me the word count, character count, and readability score: 'The quick brown fox jumped over the lazy dog. It was a bright sunny day in the meadow.'

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call text statistics without standing up your own NLP pipeline. Ideal for agents that occasionally need word counts, readability scores, or sentence-level metrics on arbitrary text, and want a metered micro-payment model rather than a subscription. Not suited for deep semantic analysis, sentiment classification, or entity extraction.

## Known failure modes

- Empty or missing 'input' field returns a validation error
- Extremely long text strings may exceed processing limits or time out
- Malformed JSON body returns a 400-level error
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Machine-readable settlement service

## Output

A JSON object containing computed statistical properties of the input text, likely including word count, character count, sentence count, paragraph count, and readability scores (e.g. Flesch-Kincaid grade level). The exact fields may vary but the response schema is open-ended (additionalProperties: true).

## 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-5351174e/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)
