# Swift Bot Labs Toolbox – Text Stats

> Swift Bot Labs Toolbox – Text Stats is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Analyzes a text string and returns word count, sentence count, character count, top keywords, Flesch Reading Ease score, and estimated reading time.

## Facts

- Endpoint: POST https://x402-toolbox.swiftbotlab.workers.dev/v1/text/stats?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-toolbox-text-stats-48793520
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sTXNYWnPSTZLBhME_bME5

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 swift-bot-labs-toolbox-text-stats-48793520 -d '<json body>'
```

Example prompt: Can you analyze this paragraph for me — count the words, sentences, and characters, give me the Flesch Reading Ease score, estimate how long it'll take to read, and pull out the top 5 keywords: 'The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs.'

## When to prefer this

Use this endpoint when you need fast, deterministic text statistics — word/sentence/character counts, readability scoring (Flesch), reading time, and keyword frequency — without needing an LLM or NLP cloud service. Ideal for lightweight content auditing, SEO keyword checks, or readability gates in automated workflows. Pay-per-call with no account setup makes it suitable for low-volume or one-off agent tasks.

## Known failure modes

- Text exceeds 1,048,576 character limit — returns validation error
- top parameter exceeds 100 — returns validation error
- Empty or missing text field — may return zero counts or error
- Payment failure via x402 — 402 response if USDC payment is not completed

## How this service works

62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.

## Output

Returns a JSON object with ok:true, the tool name, and a result object containing: words (integer), sentences (integer), characters (integer), topKeywords (array of {word, count} objects up to the requested top-N), fleschReadingEase (float, 0–100 scale), and readingTimeSeconds (integer).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "top": {
   "type": "integer",
   "default": 10,
   "maximum": 100,
   "minimum": 0
  },
  "text": {
   "type": "string",
   "maxLength": 1048576
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "text-stats",
  "result": {
   "words": 11,
   "sentences": 2,
   "characters": 55,
   "topKeywords": [
    {
     "word": "quick",
     "count": 1
    }
   ],
   "fleschReadingEase": 94.3,
   "readingTimeSeconds": 3
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-toolbox-text-stats-48793520/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
