# ONE Engine Even Sample

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

Returns an evenly-spaced sample of elements from an input array, optionally compared against another array, with configurable size and offset.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/array/even-sample/t3?utm_source=zero.xyz
- Price: $0.001/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-even-sample-34acac09
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9873DZYP6AM6rH7xArfdX

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-even-sample-34acac09 -d '<json body>'
```

Example prompt: I have a JSON array of 500 product IDs and I need an evenly spaced sample of 20 items from it — can you call the ONE Engine even-sample endpoint with my array and a size of 20?

## When to prefer this

Choose this endpoint when you need a deterministic, evenly distributed subsample of a JSON array without randomness — ideal for thinning large datasets, creating representative previews, or aligning two arrays for comparison. Prefer this over random sampling when reproducibility and uniform spacing matter. At $0.001 USDC per call it is cost-effective for agents doing frequent data reduction tasks.

## Known failure modes

- Input array exceeds 1000 items — request rejected
- Missing required 'values' field — validation error returned
- Sample size larger than input array — may return full array or error
- Invalid data types for size or offset integers — schema validation failure
- Payment not included or insufficient — 402 Payment Required response

## How this service works

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

## Output

Returns a JSON object containing the evenly sampled subset of the input array, selected at uniform intervals based on the requested size and optional offset. The response includes the sampled elements drawn from the input values array.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "values"
 ],
 "properties": {
  "size": {
   "type": "integer"
  },
  "other": {
   "type": "array",
   "description": "Optional comparison array"
  },
  "offset": {
   "type": "integer"
  },
  "values": {
   "type": "array",
   "description": "JSON array with at most 1000 items"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-even-sample-34acac09/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)
