# 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-15).

Computes character count, word count, sentence count, and estimated reading time for a given text string

## Facts

- Endpoint: GET https://pennyrail.vercel.app/api/tools/text-stats
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-text-statistics-ae0be5d9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9vjx0aBQ2kiFvIKfRHYE-

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-ae0be5d9
```

Example prompt: Can you tell me how many words, characters, and sentences are in this text, and how long it would take to read: 'Artificial intelligence is transforming the way we work, communicate, and create. Every industry is feeling its impact, from healthcare to finance to education.'?

## When to prefer this

Choose this endpoint when you need a fast, low-cost computation of basic text statistics (word count, character count, sentence count, reading time) without requiring a heavyweight NLP library or model inference. It is ideal for content pipelines, editorial tools, or agent workflows that need quick readability metrics on arbitrary text strings. At $0.001 USDC per call it is economical for high-volume use cases. Prefer alternatives if you need advanced readability scores (Flesch-Kincaid, Gunning Fog), sentiment, or language detection.

## Known failure modes

- Missing required 'text' field returns an error
- Empty string input may return zeros or an error
- Extremely long texts may hit timeout or size limits
- Non-string text values may cause validation errors
- Network or service unavailability returns a 5xx error
- Payment failure (x402) prevents access to the endpoint

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object with four fields: characters (integer total character count), words (integer word count), sentences (integer sentence count), and readingSeconds (number representing estimated reading time in seconds). Additional fields may be present due to additionalProperties: true in the schema.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "characters",
  "words",
  "sentences",
  "readingSeconds"
 ],
 "properties": {
  "words": {
   "type": "integer"
  },
  "sentences": {
   "type": "integer"
  },
  "characters": {
   "type": "integer"
  },
  "readingSeconds": {
   "type": "number"
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-text-statistics-ae0be5d9/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)
