# PennyRail Text Word Count

> PennyRail Text Word Count 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).

Counts words and computes text statistics for a given input string

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/text.stats--word-count
- 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-word-count-3ebed346
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CNl930RKIXBPbbSgzulMN

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-word-count-3ebed346 -d '<json body>'
```

Example prompt: Can you count the words and get text stats for this paragraph: 'The quick brown fox jumps over the lazy dog. It was a bright and sunny afternoon.'

## When to prefer this

Choose this endpoint when you need a fast, cheap, programmatic word count or text statistics computation via a pay-per-call micropayment model. It is ideal for agents that process many small text snippets on demand without needing a full NLP pipeline or heavyweight text analysis service.

## Known failure modes

- Missing 'input' field returns a 400 or validation error
- Empty string input may return zero counts or an error
- Very large text inputs may hit payload size limits
- Payment failure (x402) if USDC not provided or insufficient balance

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing text statistics such as word count, character count, and potentially sentence count or other computed metrics derived from the input 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-word-count-3ebed346/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)
