{"uid":"cap_Ilce_j3-Ri6kwS-XYQpjm","slug":"delx-median-8d44b334","name":"Delx Median","description":"Median of numbers. Use for robust central tendency when outliers pollute averages. Returns the median of the provided numeric list. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.","url":"https://api.delx.ai/api/v1/x402/median","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_1Fh2qX3mxWqyBJPc6vIpu","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 of a list of numbers, providing a robust central tendency measure that is unaffected by outliers.","exampleAgentPrompt":"What's the median of these numbers: 12, 45, 7, 99, 23, 4, 56, 88? I need the median specifically because there are some big outliers pulling the average up.","exampleUseCases":[{"title":"Robust salary benchmarking","prompt":"I have a list of salaries from our survey — 42000, 48000, 51000, 53000, 250000, 47000, 49000 — and the CEO salary is skewing things. Can you give me the median so I get a realistic picture of what most employees earn?"},{"title":"Median sensor reading from IoT data","prompt":"My temperature sensors logged these readings over the last hour: 22.1, 22.4, 22.3, 99.9, 22.2, 22.5, 22.0 — one sensor clearly glitched. Give me the median so the spike doesn't mess up my baseline."},{"title":"Price analysis for market research","prompt":"Here are the prices I scraped for the same product across 10 different sites: 19.99, 21.50, 20.00, 18.75, 145.00, 19.50, 21.00, 20.25, 19.99, 22.00. What's the median price so I can ignore the obvious outlier?"}],"resultDescription":"Returns the median value of the provided numeric array as deterministic first-party JSON. The median is the middle value when numbers are sorted — or the average of the two middle values for even-length arrays — making it robust against extreme outliers.","failureModes":["Empty array or missing 'values' field returns a structured validation error (not billed)","Array exceeding 10,000 items is rejected","Non-numeric values in the array cause a validation error","Payment failure or insufficient USDC balance blocks the call"],"whenToPreferThis":"Choose this endpoint when you need a robust central tendency measure and your data may contain outliers or skewed distributions that would distort a simple mean. Prefer this over a mean calculation when data includes anomalies, extreme values, or long-tail distributions such as incomes, prices, or sensor readings. It is also ideal when you need a guaranteed deterministic result without any external API key or subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:31.640Z","isFirstParty":false}