{"uid":"cap_lo1MvgdiFAgk263GuIXhh","slug":"delx-commerce-median-calculator-b4ad4e67","name":"Delx Commerce Median Calculator","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/median?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array","items":{"type":"number"},"maxItems":10000,"minItems":1,"description":"Numeric samples for stats tools (mean/median/stdev/percentile). Cap 10k numbers."}}},"responseSchema":{"type":"json","example":{"count":5,"median":6,"schema":"delx/median/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_rtFRzc6kA-6JsrRRbNexT","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 median value of a submitted array of up to 10,000 numeric samples, returning the result with count and schema identifier.","exampleAgentPrompt":"Calculate the median of these numbers for me: [3, 7, 2, 9, 6, 1, 8, 4, 5].","exampleUseCases":[{"title":"Median salary from survey data","prompt":"I have salary responses from our employee survey — here are the values: [45000, 52000, 61000, 48000, 70000, 55000, 49000]. Can you calculate the median salary?"},{"title":"Middle sensor reading in IoT stream","prompt":"I collected temperature readings from 20 sensors today: [68.1, 70.3, 65.4, 72.0, 69.8, 67.5, 71.2, 66.9, 70.1, 68.7, 69.0, 70.5, 67.8, 68.4, 71.9, 66.3, 69.5, 70.8, 68.2, 67.1]. What's the median temperature?"},{"title":"Median order value for e-commerce report","prompt":"Here are the order totals from last week: [12.50, 89.99, 45.00, 23.75, 134.20, 67.80, 19.95, 55.00, 88.40, 30.10]. What's the median order value?"}],"resultDescription":"Returns a JSON object containing the computed median value, the count of input numbers processed, and a schema identifier string ('delx/median/v1') for result verification.","failureModes":["Empty array submitted — requires at least 1 value","Array exceeds 10,000 items limit — request rejected","Non-numeric values in array — schema validation failure","Payment failure via x402 — 402 response returned before computation","Malformed JSON body — 400 error"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-use median calculation without signing up for a full statistical service. It is ideal for agents that need verifiable, on-demand numeric statistics with USDC micropayment settlement on Base or Solana, especially when handling up to 10,000 data points and wanting exact, auditable pricing per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:03.470Z","isFirstParty":false,"canonicalSlug":"delx-commerce-median-calculator-b4ad4e67"}