# ONE Engine Array Count

> ONE Engine Array Count is a paid API for AI agents from one-search.one-engine.workers.dev, paid per call via x402, $0.0009/call, status unknown (last checked 2026-10-02).

Counts the number of elements in a provided array, returning the total item count.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/array/count?utm_source=zero.xyz
- Price: $0.0009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/one-engine-array-count-e77c7d60
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jygDL3c_J9i0Zv8xupYjv

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 one-engine-array-count-e77c7d60 -d '<json body>'
```

Example prompt: How many items are in this list? ["apple", "banana", "cherry"] — just give me the count.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call array count operation without standing up your own compute infrastructure. Ideal for autonomous agents that occasionally need to count items without access to a runtime environment. At $0.0009 USDC per call via x402, it is cost-effective for infrequent or agent-driven counting tasks where local computation is unavailable.

## Known failure modes

- Array exceeds 1000 items — request will be rejected or truncated
- Empty or missing 'values' field returns count of 0 or an error
- Non-array input for 'values' field may cause a validation error
- Payment failure via x402 protocol prevents the call from completing
- Network timeout on Cloudflare Workers edge

## How this service works

Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.

## Output

Returns a JSON object with a single 'count' field containing the integer number of elements in the provided array, e.g. {"count": 3}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array",
   "description": "Maximum 1000 items"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-array-count-e77c7d60/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from one-search.one-engine.workers.dev](https://www.zero.xyz/host/one-search.one-engine.workers.dev/llms.txt)
