# Word Frequency for Agents

> Word Frequency for Agents is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-21).

Counts and returns the top words by frequency from a given text as structured JSON

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/word-frequency?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/word-frequency-for-agents-3f35cc95
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_paA_Jh4AktUKZrgQufMKI

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 word-frequency-for-agents-3f35cc95 -d '<json body>'
```

Example prompt: What are the most frequent words in this article text? Here it is: 'Climate change is accelerating at an alarming rate. Scientists warn that climate impacts will worsen unless climate action is taken immediately.'

## When to prefer this

Choose this endpoint when you need a deterministic, first-party word frequency count without any LLM interpretation or external dependencies. Ideal for lightweight content signal extraction, tag generation, or search hint ranking where reproducibility and low cost ($0.001 USDC per call) matter. Prefer this over LLM-based keyword extraction when you want raw frequency counts rather than semantic importance scores, and over third-party NLP APIs when you want no API key, no subscription, and no data retention.

## Known failure modes

- Text exceeds 100,000 character limit — returns a structured validation error (no charge)
- Empty or missing text field — returns a structured validation error (no charge)
- Payment not provided or insufficient — returns 402 Payment Required
- Network timeout on large payloads near the character limit

## How this service works

Top word frequencies. Call when ranking terms for tags, search hints, or simple content signals. Returns top words by frequency as structured JSON. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.

## Output

Returns a structured JSON object containing an ordered list of the top words and their respective frequency counts extracted from the provided text, suitable for use in tagging, search hints, or content analysis pipelines.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 100000,
   "description": "Primary text input (max 100k chars). Processed first-party; not retained as a dataset."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "top": [
   {
    "word": "agent",
    "count": 1
   },
   {
    "word": "hello",
    "count": 1
   },
   {
    "word": "world",
    "count": 1
   }
  ],
  "schema": "delx/word-frequency/v1",
  "unique": 3,
  "total_tokens": 3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/word-frequency-for-agents-3f35cc95/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
