# NexusAPI Word Count

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

Counts the number of words in a given text string

## Facts

- Endpoint: POST https://nexus-api-virid.vercel.app/api/tools/text/word-count
- Price: $0.082554/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nexusapi-word-count-21f67a80
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OfwPxDS1Dregk9xjZcK0l

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 nexusapi-word-count-21f67a80 -d '<json body>'
```

Example prompt: How many words are in this text: 'The quick brown fox jumps over the lazy dog and then runs away into the forest'?

## When to prefer this

Use this endpoint when you need a simple, programmatic word count for a text string without setting up API keys. Best suited for lightweight, pay-per-call word counting in agent workflows where native language model counting may be unreliable or you need a deterministic numeric result.

## Known failure modes

- Empty or missing query field returns an error or zero count
- Non-text input types may produce unexpected results
- Very long strings may timeout or be truncated
- Payment failure in USDC results in 402 response and no data returned

## 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 numeric word count representing the total number of words found in the submitted text string, likely alongside the original input and possibly additional text statistics.

## 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/nexusapi-word-count-21f67a80/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nexus-api-virid.vercel.app](https://www.zero.xyz/host/nexus-api-virid.vercel.app/llms.txt)
