{"uid":"cap_z7Jc8uOg9kkc6_dqERhH8","slug":"one-engine-moving-average-calculator-b906ea13","name":"ONE Engine Moving Average Calculator","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/numeric/moving-average/t8?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cVp6yf8uPbHvxvYwf_8Al","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a moving average over an array of numeric values with configurable window size, scaling, and clamping options.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Smoothing stock price series","prompt":"I have a list of 30 daily closing prices for a stock — can you compute a 5-day moving average over them and give me the results rounded to 2 decimal places? Prices: [142.5, 143.1, 141.8, 144.2, 145.0, 143.7, 146.1, 147.3, 145.9, 148.2, 149.0, 147.5, 150.1, 151.3, 149.8, 152.0, 153.4, 151.9, 154.2, 155.0, 153.7, 156.1, 157.3, 155.9, 158.2, 159.0, 157.5, 160.1, 161.3, 159.8]"},{"title":"Noise reduction on sensor data","prompt":"These are temperature readings from my IoT sensor every minute for the past 20 minutes: [22.1, 22.8, 21.9, 23.4, 22.6, 21.8, 23.1, 22.9, 21.7, 23.5, 22.3, 21.9, 23.0, 22.7, 21.8, 23.2, 22.8, 21.6, 23.4, 22.5]. Apply a 4-point moving average to smooth out the noise, clamp results between 21 and 24 degrees, and give me 1 decimal place of precision."},{"title":"Rolling average for fitness metrics","prompt":"Here are my daily step counts for the last 14 days: [8200, 9100, 7500, 10200, 9800, 8700, 11000, 9500, 8300, 10500, 9200, 8800, 11200, 9700]. Can you calculate a 7-day moving average so I can see my weekly trend? Round to the nearest whole number."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:37.334Z","isFirstParty":false,"canonicalSlug":"one-engine-moving-average-calculator-b906ea13"}