# well-008-text-stats

> well-008-text-stats is a paid API for AI agents from well-008-text-stats.mmelnyk2000.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-20).

Fetches a public HTTPS URL returning text and computes byte count, character count, line count, word count, and SHA-256 hash of the content

## Facts

- Endpoint: POST https://well-008-text-stats.mmelnyk2000.workers.dev/api/text-stats?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/well-008-text-stats-b4431d68
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I-TCnX-z7ezzOXFtn8mbG

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 well-008-text-stats-b4431d68 -d '<json body>'
```

Example prompt: Can you fetch https://raw.githubusercontent.com/torvalds/linux/master/README and tell me the word count, line count, and SHA-256 hash of the content?

## When to prefer this

Choose this endpoint when you need quick, stateless text statistics (word count, line count, byte length, SHA-256) for a publicly accessible HTTPS URL without storing the content. Ideal for integrity checks, document fingerprinting, and lightweight text metrics on documents up to 1 MB. Not suitable for HTML-rendered page content extraction, large files, private/internal URLs, or binary files.

## Known failure modes

- Non-HTTPS URLs (http, file, data, localhost, private IPs) are rejected with an error
- Response body exceeds 1 MB cap — endpoint returns an error
- Remote server takes longer than ~10 seconds to respond — timeout error
- More than 5 redirects followed — redirect limit error
- Content-type is image, audio, video, or octet-stream — rejected as non-text
- Remote URL returns a non-200 status — upstream error reported in response

## How this service works

Fetch a public https URL that returns text and compute byte/char/line/word counts plus SHA-256 ($0.005 USDC via x402). https only — http, file, data, localhost, and private IPs are rejected. Caps: 1 MB body, ~10s timeout, max 5 redirects. Rejects image/audio/video/octet-stream. Returns JSON { url, final_url, content_type, byte_length, char_count, line_count, word_count, sha256, warnings }. Provided as is, with no warranty or guarantee of accuracy or fitness. Nothing is stored.

## Output

Returns a JSON object containing the original URL, final URL after redirects, content type, byte length, character count, line count, word count, SHA-256 hash of the content, and any warnings (e.g. redirect notices or encoding caveats). Nothing is stored server-side.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "description": "https URL that returns text to analyze. http/file/data/localhost/private IPs rejected."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/well-008-text-stats-b4431d68/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from well-008-text-stats.mmelnyk2000.workers.dev](https://www.zero.xyz/host/well-008-text-stats.mmelnyk2000.workers.dev/llms.txt)
