{"uid":"cap_0g-f7HMX3NXMNAHF6Vs98","slug":"one-engine-moving-average-t7-84871e3b","name":"ONE Engine Moving Average (T7)","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/t7?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.0065","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.0065/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rQWpk1urhDZiY9eASIaLU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0065","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 optional normalization, scaling, and offset parameters.","exampleAgentPrompt":"Can you calculate a moving average over this list of values [12, 15, 14, 10, 18, 22, 19, 16] using a window size of 3 and round to 2 decimal places?","exampleUseCases":[{"title":"Smooth noisy sensor readings","prompt":"I have these temperature sensor readings from the last hour: [72.1, 73.4, 68.9, 74.2, 75.0, 71.3, 69.8, 72.6, 74.1, 70.5] — can you smooth them out with a moving average using a window of 4 and 2 decimal digits?"},{"title":"Trend analysis for sales data","prompt":"Here are my daily sales numbers for the past two weeks: [200, 220, 180, 240, 260, 210, 195, 230, 250, 270, 215, 205, 245, 265] — compute a 5-day moving average so I can see the trend, scaled by a factor of 1 and offset by 0."},{"title":"Normalize and average signal data","prompt":"I've got raw signal data [0.5, 1.2, 0.8, 1.5, 1.1, 0.9, 1.3, 1.0] that ranges from 0 to 2 — can you compute a moving average with window size 3, normalize it between min 0 and max 2, and give me results to 3 decimal places?"}],"resultDescription":"Returns a JSON object containing the computed moving average results over the input array, reflecting any applied normalization bounds (min/max), scaling factor, offset, and rounding precision specified in the request.","failureModes":["Array exceeds 1000 elements — request rejected","Non-finite values (NaN, Infinity) in input array — validation error","Window size (size) larger than input array length — undefined or empty result","Missing required 'values' field — 400 Bad Request","Payment not included or insufficient — 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call moving average computation without standing up your own numeric processing infrastructure. Ideal for AI agents needing on-demand statistical smoothing with optional normalization and scaling in a single API call. Prefer this over general-purpose compute services when cost predictability and x402 micropayment compatibility on Base are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:14.956Z","isFirstParty":false,"canonicalSlug":"one-engine-moving-average-t7-84871e3b"}