# well-008-text-stats

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

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

## Facts

- Endpoint: POST https://well-008-text-stats.rainmaker-wells.workers.dev/api/text-stats?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/well-008-text-stats-331ab5ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p2jCd85NEpbPuiIrWgbpg

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-331ab5ee -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need fast, stateless computation of basic text statistics (word, line, char, byte counts) and a SHA-256 fingerprint for any publicly accessible HTTPS text URL without storing data. Ideal for integrity checking, change detection, or document sizing tasks where the source is a public HTTPS endpoint returning plain text or HTML.

## Known failure modes

- Non-HTTPS URLs (http, file, data, localhost, private IPs) are rejected with an error
- Responses larger than 1 MB are rejected
- Requests timing out after ~10 seconds return a timeout error
- Image, audio, video, or octet-stream content types are rejected
- More than 5 redirects results in an error
- Payment not provided or invalid x402 payment results in a 402 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

A JSON object containing the original URL, the final URL after any redirects, content type, byte length, character count, line count, word count, SHA-256 hash of the content, and any warnings (e.g. about encoding or redirects). 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-331ab5ee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from well-008-text-stats.rainmaker-wells.workers.dev](https://www.zero.xyz/host/well-008-text-stats.rainmaker-wells.workers.dev/llms.txt)
