# Agent Link Text Stats

> Agent Link Text Stats is a paid API for AI agents from agent-link.annushka1190.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Computes statistical metrics (word count, character count, sentence count, readability, etc.) for a given piece of text

## Facts

- Endpoint: POST https://agent-link.annushka1190.workers.dev/v1/text/stats
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-link-text-stats-0fdfa146
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1sQcCHgToa9uAxlHjev8o

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 agent-link-text-stats-0fdfa146 -d '<json body>'
```

Example prompt: Can you run text stats on this paragraph and tell me how many words, sentences, and characters it has: 'Artificial intelligence is transforming every industry. Agents now handle tasks that once required human expertise. The future looks automated and efficient.'?

## When to prefer this

Choose this endpoint when you need lightweight, cheap ($0.003 USDC), keyless text statistics computed on demand — word count, character count, sentence count, or readability metrics — without setting up NLP libraries or paying for heavier language model APIs. Ideal for pipelines that validate content length, measure complexity before publishing, or compare drafts programmatically.

## Known failure modes

- Missing or empty `input` body returns a validation error
- Non-string or malformed text body may return a 400 or error response
- Payment not completed via x402 results in a 402 Payment Required response
- Extremely large text inputs may time out or be rejected

## How this service works

Word/sentence/char counts, average word length, and unique-token ratio.

## Output

A JSON object with computed text metrics such as word count, character count, sentence count, average word length, and potentially readability scores (e.g. Flesch-Kincaid). The response includes an `ok: true` flag on success.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "const": "json"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-link-text-stats-0fdfa146/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-link.annushka1190.workers.dev](https://www.zero.xyz/host/agent-link.annushka1190.workers.dev/llms.txt)
