# Textdock Text Stats

> Textdock Text Stats is a paid API for AI agents from textdock.ggez.my.id, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-21).

Analyzes a text string to return word count, sentence count, character count, paragraph count, estimated reading time, and top N most frequent terms.

## Facts

- Endpoint: POST https://textdock.ggez.my.id/text_stats?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/textdock-text-stats-1414871a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f5xi1BRUs5VnxB6oQWBBC

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 textdock-text-stats-1414871a -d '<json body>'
```

Example prompt: Analyze this product description for me and give me the word count, sentence count, reading time, and top 3 most frequent terms: 'Our new market-leading platform connects buyers and sellers in real time, with buyers getting the best market prices instantly.'

## When to prefer this

Choose this endpoint when you need deterministic, reproducible text statistics — word counts, sentence counts, character counts, reading time estimates, and term frequency rankings — without any AI-generated or probabilistic output. It is ideal for pipelines that require consistent metrics (e.g. SEO tools, content moderation, readability scoring) rather than semantic understanding or NLP inference.

## Known failure modes

- Empty or missing text field returns an error or zero-value stats
- Non-integer top_n causes a validation error
- Extremely long texts may hit size limits or increase latency
- Payment failure (insufficient USDC balance) results in HTTP 402 and no response body

## How this service works

Deterministic CSV, URL and text utilities sold per call in USDC on Base.

## Output

A JSON object containing: words (integer), sentences (integer), characters (integer), paragraphs (integer), reading_time_seconds (integer), and top_terms (array of {term, count} objects ranked by frequency, limited to top_n entries).

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "words": 4,
  "sentences": 1,
  "top_terms": [
   {
    "term": "market",
    "count": 2
   },
   {
    "term": "buyer",
    "count": 1
   }
  ],
  "characters": 26,
  "paragraphs": 1,
  "reading_time_seconds": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/textdock-text-stats-1414871a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from textdock.ggez.my.id](https://www.zero.xyz/host/textdock.ggez.my.id/llms.txt)
