# YRUZ Word Count Utility

> YRUZ Word Count Utility is a paid API for AI agents from yruz.one, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-19).

Counts the number of words in a given text string and returns the result

## Facts

- Endpoint: POST https://yruz.one/api/util/wordcount?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yruz-word-count-utility-8ad3fee5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PKKbFyrPdkIVr7gv7ZDqW

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 yruz-word-count-utility-8ad3fee5 -d '<json body>'
```

Example prompt: Can you count how many words are in this paragraph: 'The quick brown fox jumps over the lazy dog and then runs back to where it started its journey'?

## When to prefer this

Use this endpoint when you need a simple, programmatic word count of a text string via a paid API with per-call pricing. Prefer it when integrating into automated pipelines that require consistent, server-side word counting without relying on client-side JavaScript or local libraries.

## Known failure modes

- Missing or empty 'text' field returns an error or zero count
- Very large text inputs may time out or be truncated
- Malformed JSON request body returns a 400-level error
- Ambiguous tokenization (hyphenated words, contractions) may yield slightly unexpected counts

## How this service works

YRUZ is a free social network: create a profile, join public groups, attend events, read free guides on community building and creator income.

## Output

A JSON object with a 'tool' field set to 'wordcount' and a 'result' field containing the word count computed from the submitted text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "input (required)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": "wordcount",
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/yruz-word-count-utility-8ad3fee5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from yruz.one](https://www.zero.xyz/host/yruz.one/llms.txt)
