# ONE Engine Array First

> ONE Engine Array First 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).

Returns the first element of a provided array, indicating whether a value was found.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/array/first?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-first-d3d6a8d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RSSWBO2WZ111Er3I0dw_J

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-first-d3d6a8d6 -d '<json body>'
```

Example prompt: I have this array ['a', 'b', 'c'] — can you get me the first element from it?

## When to prefer this

Use this endpoint when you need a cheap, simple, pay-per-call operation to extract the first element of an array within an autonomous agent pipeline on Base using x402 micropayments. Prefer this over custom code when you want a stateless, reliable utility call billed at $0.0009 USDC per invocation.

## Known failure modes

- Empty array returns {"found": false, "value": null}
- Missing 'values' field in request body causes validation error
- Non-array type passed as 'values' may cause unexpected behavior
- Payment failure via x402 results in 402 response before processing

## How this service works

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

## Output

A JSON object with a 'found' boolean indicating whether the array had any elements, and a 'value' field containing the first element of the array if found (e.g. {"found": true, "value": "a"}).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "found": true,
  "value": "a"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-array-first-d3d6a8d6/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)
