# SignalDesk AI Array Frequency Counter

> SignalDesk AI Array Frequency Counter is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Counts the frequency of each unique value in a JSON array, returning a sorted list of values with their occurrence counts

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/json/array-frequency?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signaldesk-ai-array-frequency-counter-c5adc590
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-2O_jXBFFwGoCwi8j8OOl

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 signaldesk-ai-array-frequency-counter-c5adc590 -d '<json body>'
```

Example prompt: Count how many times each value appears in this array for me: ["apple", "banana", "apple", "cherry", "banana", "apple"] — I want to see them ranked by frequency.

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.001 USDC) frequency count over a JSON array of up to 1000 items and want results without setting up local computation. Ideal for agents that need on-the-fly tallying of categorical data, survey responses, log codes, or any discrete value set without maintaining local state.

## Known failure modes

- Array exceeds 1000 items — request rejected due to maxItems constraint
- Malformed JSON input — array not parseable returns error
- Empty array — returns empty frequencies list
- Payment failure — x402 payment of 0.001 USDC not processed, request blocked
- Network timeout on Cloudflare Workers edge

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

Returns a JSON object with a 'frequencies' array, where each element contains a 'value' (the unique item from the input array) and a 'count' (how many times it appeared). Results appear to be sorted by count in descending order, so the most frequent items come first.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array",
   "items": {},
   "maxItems": 1000,
   "minItems": 0,
   "description": "JSON array."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "frequencies": [
   {
    "count": 2,
    "value": "a"
   },
   {
    "count": 1,
    "value": "b"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-array-frequency-counter-c5adc590/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
