# Text Statistics & Readability

> Text Statistics & Readability is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).

Analyzes a text string and returns word count, sentence count, character count, reading/speaking time, readability scores (Flesch, Flesch-Kincaid, Gunning Fog), lexical diversity, and top keywords.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/text/stats?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-statistics-readability-a5e1590d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VovV2-OCXF_gcbu2ZJbNr

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 text-statistics-readability-a5e1590d
```

Example prompt: Can you run readability stats on this blog intro — word count, Flesch reading ease, grade level, and estimated reading time: 'Content marketing has exploded in recent years. Brands large and small now publish blogs, whitepapers, and social posts at an unprecedented pace, competing for shrinking reader attention spans.'?

## When to prefer this

Choose this endpoint when you need a comprehensive, multi-metric readability and text-statistics report in a single call — especially when you need standard academic readability formulas (Flesch, Flesch-Kincaid, Gunning Fog) alongside word/sentence counts and keyword extraction. Ideal for content editors, SEO workflows, student writing tools, and script timing checks. Prefer this over generic NLP APIs when readability grade-level scoring and speaking-time estimates are specifically required.

## Known failure modes

- Missing 'text' query parameter returns a validation error
- Text exceeding 100,000 characters may be rejected or truncated
- Empty string input may return zeroed-out metrics or an error
- Very short inputs (1-2 words) may produce unreliable readability scores
- Non-English text may yield inaccurate readability scores since formulas are calibrated for English
- Network timeout on the Render.com host if the service is cold-starting

## How this service works

Statistics for a text: words, sentences, characters, paragraphs, reading and speaking time, Flesch reading ease, Flesch-Kincaid grade, Gunning fog, complex-word share, lexical diversity and top keywords. Use to check copy, essays or SEO content.

## Output

Returns a JSON object with: total word count, sentence count, character count, paragraph count, estimated reading time (minutes), estimated speaking time (minutes), Flesch reading ease score, Flesch-Kincaid grade level, Gunning Fog index, percentage of complex words, lexical diversity ratio, and a ranked list of top keywords extracted from the text.

## 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": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Text to analyse (max 100,000 characters)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-statistics-readability-a5e1590d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
