# 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.01/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/t8?utm_source=zero.xyz
- Price: $0.01/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-b906ea13
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z7Jc8uOg9kkc6_dqERhH8

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

Example prompt: Can you calculate a moving average over these 12 sensor readings [4.2, 5.1, 3.8, 6.0, 5.5, 4.9, 6.2, 7.1, 6.8, 5.3, 4.7, 6.1] using a window size of 3 and round results to 2 decimal places?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call moving average computation without setting up your own statistical library — especially useful for AI agents that need on-demand numeric smoothing in workflows involving time series, sensor data, or financial prices. At $0.01 USDC per call it is cost-effective for occasional or sporadic computations. Prefer it over self-hosted solutions when minimizing infrastructure overhead matters.

## Known failure modes

- Missing required 'values' field returns a validation error
- Array exceeding 1000 elements may be rejected
- Invalid (non-finite) numbers in the values array cause errors
- Non-integer 'size' or 'digits' parameters may cause unexpected behavior
- Payment failure via x402 protocol returns HTTP 402 before computation
- Empty array may return an empty result or error

## 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 computed moving average values over the input array, reflecting the configured window size, scaling factor, offset, clamping bounds, and decimal precision. The exact response structure may vary but typically includes the smoothed output series.

## 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-b906ea13/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)
