# ApexAPI Word Count

> ApexAPI Word Count is a paid API for AI agents from apex-api-gamma.vercel.app, paid per call via x402, $0.16305/call, status unknown (last checked 2026-09-15).

Counts the number of words in a given text string

## Facts

- Endpoint: POST https://apex-api-gamma.vercel.app/api/tools/text/word-count
- Price: $0.16305/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apexapi-word-count-505c02f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CuA1t6s3Pc0qSA67ZYFT7

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 apexapi-word-count-505c02f8 -d '<json body>'
```

Example prompt: Can you count how many words are in this paragraph for me: 'The quick brown fox jumps over the lazy dog and then ran away into the forest'?

## When to prefer this

Use this endpoint when you need a quick, paid-per-call word count computation without managing API keys. Suitable for agents that need to verify document length, enforce word limits, or compute text metrics programmatically within a USDC-based micropayment workflow on Base.

## Known failure modes

- Empty input string returns zero or error response
- Extremely long text inputs may be truncated or rejected
- Non-text or binary input may cause a parsing error
- Payment failure (402) if USDC balance is insufficient
- Network timeout for very large text payloads

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns a count of the number of words in the submitted text, likely including the total word count and possibly additional text statistics such as character count or word frequency breakdown.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apexapi-word-count-505c02f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apex-api-gamma.vercel.app](https://www.zero.xyz/host/apex-api-gamma.vercel.app/llms.txt)
