{"uid":"cap_TQS1GtAr1exc_uAfJvqpv","slug":"delx-commerce-average-of-n-values-9a510c87","name":"Delx Commerce — Average of N Values","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/avg-n?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array","description":"Input field: values."}}},"responseSchema":{"type":"json","example":{"count":3,"value":4,"schema":"delx/util-avg-n/v1"}},"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_cWaGI2nnFV14T3ku8WmQT","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 an array of numeric values and returns the count and result, paid per-call via USDC on Base or Solana.","exampleAgentPrompt":"Can you calculate the average of these numbers for me: 3, 5, 7, 2, 1? Just give me the mean and how many values were included.","exampleUseCases":[{"title":"Average product prices for comparison","prompt":"I have a list of prices from different vendors — 12.5, 9.99, 14.0, 11.25, 10.50 — can you calculate the average price across all of them?"},{"title":"Mean sensor reading from IoT data","prompt":"I've got a batch of temperature readings from my sensors: 72.1, 71.8, 73.4, 70.9, 72.6 — what's the average temperature?"},{"title":"Average quiz scores for a student","prompt":"A student got these scores on five quizzes: 88, 92, 76, 85, 90. What's their average score?"}],"resultDescription":"Returns a JSON object containing the count of input values, the computed arithmetic mean as 'value', and a schema identifier string ('delx/util-avg-n/v1') for verifiable delivery confirmation.","failureModes":["Empty or missing 'values' array returns an error or undefined result","Non-numeric values in the array may cause computation failure or be ignored","Payment failure via x402 (insufficient USDC balance) blocks the request","Malformed JSON input body returns a 400-level error","Very large arrays may hit payload size limits"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use arithmetic mean calculation with no signup or account management, especially in agentic workflows where verifiable, metered computation is required and USDC micropayments on Base or Solana are already supported.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:47.534Z","isFirstParty":false,"canonicalSlug":"delx-commerce-average-of-n-values-9a510c87"}