# Delx Commerce Word Frequency API

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

Counts word frequencies in a text and returns the top words with their counts, total token count, and unique word count.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/word-frequency?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-word-frequency-api-30de2a69
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_emX-kj6_cQJdFgO-eC1hU

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 delx-commerce-word-frequency-api-30de2a69 -d '<json body>'
```

Example prompt: Count the word frequencies in this text and tell me the top words and how often each appears: 'The quick brown fox jumps over the lazy dog. The dog barked at the fox.'

## When to prefer this

Choose this endpoint when you need a simple, pay-per-call word frequency count with no signup or API key — ideal for AI agents that need lightweight text analytics on demand using USDC micropayments. Prefer this over heavier NLP APIs when you only need token/word counts and top-word rankings without sentiment, entities, or embeddings.

## Known failure modes

- Text exceeds 100,000 character limit — request rejected
- Payment not fulfilled via x402 — 402 response returned
- Empty or missing 'text' field — validation error
- Malformed JSON body — 400 bad request

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with a ranked list of the top words and their occurrence counts, the total number of tokens, and the count of unique words. Schema version is included as 'delx/word-frequency/v1'.

## 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/delx-commerce-word-frequency-api-30de2a69/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
