# ONE Engine Moving Average Calculator

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

Computes a moving average over an array of numeric values with configurable window size, scaling, and clamping options.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/numeric/moving-average/t6?utm_source=zero.xyz
- Price: $0.004/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-moving-average-calculator-a8ea5d94
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QGn9WG-LWxYLd8D72m5jp

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-moving-average-calculator-a8ea5d94 -d '<json body>'
```

Example prompt: Calculate a moving average over these 20 sensor readings using a window size of 5, clamping results between 0 and 100, and rounding to 2 decimal places: [12.3, 15.1, 14.8, 13.2, 16.0, 17.5, 15.9, 14.4, 13.8, 12.9, 16.1, 17.0, 18.2, 15.5, 14.3, 13.7, 12.1, 11.8, 13.4, 15.6].

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call moving average computation without hosting your own math service — especially useful for AI agents that sporadically need signal smoothing, financial rolling averages, or sensor data preprocessing at low cost ($0.004/call) via x402 on Base.

## Known failure modes

- Input array exceeds 1000 elements — request rejected
- Non-finite or NaN values in the input array cause computation failure
- Window size (size) larger than input array length may return empty or partial results
- Invalid type for parameters (e.g. non-integer for digits) returns a 400 error
- Payment not included or insufficient USDC results in 402 Payment Required

## 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 smoothed moving average series derived from the input array, with values optionally scaled, offset, clamped to min/max bounds, and rounded to the specified number of decimal digits.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "values"
 ],
 "properties": {
  "max": {
   "type": "number"
  },
  "min": {
   "type": "number"
  },
  "size": {
   "type": "integer"
  },
  "digits": {
   "type": "integer"
  },
  "factor": {
   "type": "number"
  },
  "offset": {
   "type": "number"
  },
  "values": {
   "type": "array",
   "description": "Finite numbers, maximum 1000"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-moving-average-calculator-a8ea5d94/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)
