# kosoyy tools — Text Stats Micro-API

> kosoyy tools — Text Stats Micro-API is a paid API for AI agents from alert-woodpecker-2022.kosoyyagent.deno.net, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-16).

Computes deterministic text statistics (e.g. word count, character count, sentence count) for a given string, billed per call at $0.001 USDC via x402.

## Facts

- Endpoint: POST https://alert-woodpecker-2022.kosoyyagent.deno.net/api/text-stats?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kosoyy-tools-text-stats-micro-api-0b46f6e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XRVtFtbjgMMaplDZGOnMG

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 kosoyy-tools-text-stats-micro-api-0b46f6e7 -d '<json body>'
```

Example prompt: Can you count the words, characters, and sentences in this paragraph: 'The quick brown fox jumps over the lazy dog. It did so with great enthusiasm and speed.'

## When to prefer this

Choose this endpoint when you need fast, cheap, deterministic text statistics (word/character/sentence counts) billed at fractions of a cent via x402 USDC micropayments, without requiring a subscription or API key — ideal for agents that process variable volumes of text and want pay-per-call pricing on Solana or Base.

## Known failure modes

- 402 Payment Required — unpaid requests return a 402 offer requiring USDC payment via x402 protocol
- 400 Bad Request — missing or empty 'data' field in request body
- 500 Internal Server Error — unexpected server-side failure
- Empty string input may return zeroed statistics or an error

## How this service works

Deterministic utility tools, paid per call in USDC (Solana or Base). Unpaid requests return a 402 offer.

## Output

Returns a JSON object with an 'ok' boolean, a 'route' string identifying the endpoint, and a 'result' object containing computed text statistics such as word count, character count, and sentence count for the submitted text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data"
 ],
 "properties": {
  "data": {
   "type": "string",
   "description": "text to analyze"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ok": {
   "type": "boolean"
  },
  "route": {
   "type": "string"
  },
  "result": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kosoyy-tools-text-stats-micro-api-0b46f6e7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alert-woodpecker-2022.kosoyyagent.deno.net](https://www.zero.xyz/host/alert-woodpecker-2022.kosoyyagent.deno.net/llms.txt)
