{"uid":"cap_ee3S1MnI4WYap3rrviIci","slug":"one-engine-array-average-4ad18eeb","name":"ONE Engine Array Average","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/array/average?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array","description":"Non-empty array of finite numbers"}}},"responseSchema":{"type":"json","example":{"count":3,"value":20}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aV-pmdy0l7KmlM0qm0jBj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the arithmetic mean of a provided array of numbers, returning the count and average value.","exampleAgentPrompt":"Calculate the average of these numbers for me: 15, 20, and 25 — I need both the mean and how many values were in the list.","exampleUseCases":[{"title":"Average product prices in catalog","prompt":"I have a list of product prices — 9.99, 14.99, 4.50, 22.00, and 7.75 — can you calculate the average price for me?"},{"title":"Mean student test score","prompt":"Here are the test scores from my class: 88, 72, 95, 61, 84, 90, 77. What's the average score across all of them?"},{"title":"Summarize sensor readings","prompt":"I collected these temperature readings throughout the day: 68.2, 71.5, 74.0, 69.8, 72.3 — what's the mean temperature and how many readings did I take?"}],"resultDescription":"Returns a JSON object with 'count' (number of values in the input array) and 'value' (the arithmetic mean of those numbers). Example: {\"count\": 3, \"value\": 20}.","failureModes":["Empty array input — endpoint requires a non-empty array; returns error if values array is missing or empty","Non-finite numbers (Infinity, NaN) in the array — schema requires finite numbers only","Malformed request body — missing 'values' property or wrong data type returns a 400-level error","Payment failure — x402 payment of $0.001 USDC not settled correctly blocks the call"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a quick, cheap, stateless arithmetic mean computation without standing up any server-side logic. At $0.001 USDC per call via x402 on Base, it is ideal for autonomous agents that process numeric arrays on demand and need deterministic, low-latency results. Prefer it over general-purpose code execution when you just need a mean and count without extra overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:07.775Z","isFirstParty":false,"canonicalSlug":"one-engine-array-average-4ad18eeb"}