{"uid":"cap_NI9AQ14UL2xm2Uq7ZY2SY","slug":"one-engine-moving-average-t4-856be5f9","name":"ONE Engine Moving Average (T4)","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/t4?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.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_h5jwMGM-nFG0ISBduPxEa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","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":"Smooth this list of numbers using a moving average with a window size of 5: [3, 7, 2, 9, 4, 8, 6, 1, 5, 10, 3, 7] — round results to 2 decimal places.","exampleUseCases":[{"title":"Smooth sensor data readings","prompt":"I have a list of temperature sensor readings and they're really noisy — can you apply a moving average with a window of 4 to smooth them out? Values are: [22.1, 23.5, 21.8, 24.2, 22.9, 23.7, 25.1, 22.4, 23.0, 24.8]"},{"title":"Rolling average for price trend","prompt":"Calculate a 7-period moving average over these daily closing prices so I can see the trend: [150.2, 152.8, 149.5, 153.1, 155.0, 154.3, 156.7, 158.2, 157.0, 159.4, 161.0, 160.2]"},{"title":"Clamp-bounded moving average","prompt":"Run a moving average with window size 3 on these values: [5, 12, 3, 18, 7, 25, 2, 9], but clamp the output so nothing goes below 5 or above 20, and give me 1 decimal place."}],"resultDescription":"Returns a JSON object containing the computed moving average values as a smoothed numeric series, derived from the input array using the specified window size and any applied scaling, offset, min/max clamping, and rounding options.","failureModes":["Input array exceeds 1000 elements — request rejected","Non-finite values (NaN, Infinity) in values array cause computation error","Window size (size) larger than input array length may return empty or partial results","Payment failure via x402 prevents endpoint access","Missing required 'values' field returns validation 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 processing numeric streams (sensor data, prices, metrics) that need on-the-fly smoothing with clamping and scaling options at minimal cost ($0.0015 per call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:24.196Z","isFirstParty":false,"canonicalSlug":"one-engine-moving-average-t4-856be5f9"}