# PrimeAPI Word Count

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

Counts the number of words in a given text string

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/tools/text/word-count
- Price: $0.16305/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-word-count-106de97b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sTT1mLVot-XUtYdmvF_Dd

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 primeapi-word-count-106de97b -d '<json body>'
```

Example prompt: Can you count the words in this paragraph for me: '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, reliable word count for a text string and want a pay-per-call approach with no API key setup. Suitable for one-off word count checks or lightweight integrations where a full NLP library is overkill.

## Known failure modes

- Empty input string returns zero or an error
- Non-string input may cause a validation error
- Very large text inputs may time out or be truncated
- Payment of 0.16305 USDC on Base must succeed before the call is processed; insufficient funds returns a 402 error

## 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 in the submitted text string.

## 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/primeapi-word-count-106de97b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prime-api-seven.vercel.app](https://www.zero.xyz/host/prime-api-seven.vercel.app/llms.txt)
