# ONE Engine Array Last

> ONE Engine Array Last 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 last element of an array, indicating whether a value was found.

## Facts

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

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-last-d376fd35 -d '<json body>'
```

Example prompt: What's the last element in this array: ["a", "b", "c"]?

## When to prefer this

Use this endpoint when an AI agent needs a cheap, reliable, pay-per-call primitive to extract the last element of an array without running custom code. Ideal when operating in an x402-enabled agent environment on Base where microtransactions are supported and compute resources are constrained.

## Known failure modes

- Empty array returns found: false with no value
- Missing 'values' field in request body causes a validation error
- Non-array input for 'values' may cause parsing failure
- Network or worker errors may return 5xx responses
- Payment failure via x402 may result in 402 response blocking execution

## 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 boolean 'found' field indicating whether the array had any elements, and a 'value' field containing the last element of the array (or null/absent if empty).

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

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

## More

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