# Autocash Text Metrics

> Autocash Text Metrics is a paid API for AI agents from autocash-text-metrics.benjamindorey.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns deterministic text metrics including character/word/sentence counts, Flesch readability score, and word frequency distribution for a given text input.

## Facts

- Endpoint: GET https://autocash-text-metrics.benjamindorey.workers.dev/v1/metrics
- 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/autocash-text-metrics-605d02db
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_djL9Js0oLkzbDfKjK14YR

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 autocash-text-metrics-605d02db
```

Example prompt: Can you get the readability score, word count, and top word frequencies for this paragraph: 'The quick brown fox jumps over the lazy dog. Simple sentences help readers understand content faster.'?

## When to prefer this

Choose this endpoint when you need fast, deterministic, reproducible text statistics — word count, sentence count, Flesch readability score, and word frequency — without any AI inference or probabilistic output. Ideal for pipelines that require consistent results on repeated calls with the same text, such as content auditing workflows, SEO analysis, or automated readability gating. Prefer over LLM-based analysis when accuracy, cost-efficiency ($0.001/call), and determinism matter more than nuanced interpretation.

## Known failure modes

- Empty or missing text input returns an error or zeroed metrics
- Extremely long text may hit Cloudflare Worker request size limits
- Non-UTF-8 or binary input may produce incorrect counts
- GET method required; sending POST or other methods returns a method-not-allowed error
- No text body provided returns an error response

## How this service works

Deterministic text metrics: counts, Flesch readability, word frequency

## Output

Returns a structured object containing deterministic counts (words, characters, sentences), a Flesch readability score (0–100 scale indicating ease of reading), and a word frequency map listing each unique word and how many times it appears in the input text.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/autocash-text-metrics-605d02db/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from autocash-text-metrics.benjamindorey.workers.dev](https://www.zero.xyz/host/autocash-text-metrics.benjamindorey.workers.dev/llms.txt)
