# CCC Tools Text Statistics API

> CCC Tools Text Statistics API is a paid API for AI agents from ccc-tools-phi.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Analyzes a text string and returns statistical metrics such as word count, character count, sentence count, and other text properties

## Facts

- Endpoint: GET https://ccc-tools-phi.vercel.app/api/text-stats
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ccc-tools-text-statistics-api-197ef8cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z61Tr0VHBgHdh-86qmBhU

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 ccc-tools-text-statistics-api-197ef8cc
```

Example prompt: Can you give me the full text stats for this paragraph — word count, character count, sentence count, all of it: 'The quick brown fox jumps over the lazy dog. It was a sunny afternoon and the forest was quiet.'

## When to prefer this

Use this endpoint when you need quick, cheap ($0.05 USDC) programmatic text statistics — word count, character count, sentence analysis — without setting up a local NLP library. Ideal for agents that need to measure content length before processing, validate text constraints, or report on document properties.

## Known failure modes

- Empty or missing text parameter returns an error
- Extremely long text strings may cause timeouts or truncation
- Payment failure via x402 micropayment results in 402 Payment Required response
- Malformed request returns 400 Bad Request

## How this service works

Developer utilities via x402 micropayments. QR code generation, markdown-to-HTML conversion, base64 encoding/decoding, hash generation (SHA256/SHA512/MD5), text statistics, and JSON formatting.

## Output

Returns statistical metrics about the provided text, including word count, character count, sentence count, paragraph count, and estimated reading time or other text properties.

## Example request

```json
{
 "text": "The quick brown fox jumps over the lazy dog. It was a sunny afternoon and the forest was quiet. This is a test of the text analysis API."
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Text to analyze"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ccc-tools-text-statistics-api-197ef8cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ccc-tools-phi.vercel.app](https://www.zero.xyz/host/ccc-tools-phi.vercel.app/llms.txt)
