# ForgeMesh Text Statistics API

> ForgeMesh Text Statistics API is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Computes character count, word count, sentence count, average sentence length, Flesch reading-ease score, estimated reading time, and estimated LLM token count for any submitted text.

## Facts

- Endpoint: POST https://x402.forgemesh.io/text-statistics
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-text-statistics-api-6efb44d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-Y_jBoNYxG3bQxQ6j1I_3

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 forgemesh-text-statistics-api-6efb44d0 -d '<json body>'
```

Example prompt: Can you give me the full text statistics for this paragraph — word count, character count, Flesch readability score, estimated reading time, and token count: 'Artificial intelligence is transforming how we write, read, and communicate, but not everyone agrees on whether that transformation is for the better.'

## When to prefer this

Use this endpoint when you need instant, stateless text statistics including LLM token estimation, readability scoring, and reading-time estimates — especially in agent pipelines doing context-budget checks, readability gates, or content QA. Prefer this over heavyweight NLP APIs when you only need lightweight computed metrics without storing data or sending content to a third party.

## Known failure modes

- Empty or missing 'text' field returns an error response
- Extremely long text may exceed request size limits
- Non-UTF-8 encoded content may cause parsing errors
- Network timeout on slow connections despite fast computation

## How this service works

Text statistics API: characters, words, sentences, average sentence length, Flesch reading-ease score, estimated reading time, and estimated LLM token count for any text — instant, computed locally, nothing stored. For context-budget checks, readability gates, and content QA in agent pipelines.

## Output

Returns a JSON object containing character count, word count, sentence count, average sentence length, Flesch reading-ease score (0–100), estimated human reading time, and estimated LLM token count for the submitted text. No data is stored server-side.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "words": 13,
  "sentences": 2,
  "flesch_reading_ease": 97,
  "estimated_llm_tokens": 16
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-text-statistics-api-6efb44d0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
