# Delx Commerce — Character Frequency Counter

> Delx Commerce — Character Frequency Counter 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 the frequency of each character in a given text string and returns the top characters by count along with totals.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/char-freq?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-character-frequency-counter-8c3038da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-sEFeHjgF6RRAWVndG2uj

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-character-frequency-counter-8c3038da -d '<json body>'
```

Example prompt: Count how many times each character appears in the string 'abracadabra' and show me the top characters sorted by frequency.

## When to prefer this

Use this endpoint when you need a fast, cheap, pay-per-call character frequency computation with no signup required. Ideal for agents that occasionally need character distribution stats without embedding a full NLP library. Prefer this over writing custom code when you want verifiable, deterministic output in a standardized schema at $0.001 per call.

## Known failure modes

- Empty or missing 'text' field returns an error or empty result
- Extremely long strings may be truncated or rejected
- Non-UTF8 or binary input may cause unexpected character counts
- Payment failure via x402 protocol results in 402 response before processing

## 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 characters and their counts (e.g. [{char: 'b', count: 3}]), the total character count across the input, the number of unique characters, and a schema identifier string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input field: text."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "top": [
   {
    "char": "b",
    "count": 3
   },
   {
    "char": "a",
    "count": 2
   },
   {
    "char": "c",
    "count": 1
   }
  ],
  "count": 6,
  "schema": "delx/util-char-freq/v1",
  "unique": 3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-character-frequency-counter-8c3038da/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)
