{"uid":"cap_yTZm-n3JrypwQfGKbNMGF","slug":"stats-percentile-9df438ed","name":"stats-percentile","description":"Nth percentile of a list of numbers (linear interpolation between closest ranks).","url":"https://x402.agentindex.world/stats/percentile?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"number"},"title":"Data","minItems":1},"percentile":{"type":"number","title":"Percentile","maximum":100,"minimum":0}}},"responseSchema":{"type":"json","example":{"value":5.5}},"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_PY0Ti9p25h3UW3afT_xie","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 Nth percentile of a list of numbers using linear interpolation between closest ranks.","exampleAgentPrompt":"What's the 95th percentile of these response times: [120, 340, 89, 450, 210, 670, 130, 95, 580, 310]?","exampleUseCases":[{"title":"P95 latency analysis for SLO reporting","prompt":"I have these API response times in milliseconds: [45, 67, 89, 120, 340, 450, 210, 670, 130, 95, 580, 310, 78, 420, 55]. What is the 95th percentile latency?"},{"title":"Salary quartile benchmarking","prompt":"Here are the salaries from our engineering team: [72000, 85000, 91000, 105000, 118000, 97000, 88000, 76000, 130000, 95000]. Can you calculate the 75th percentile so I know where the top quartile cutoff is?"},{"title":"Student score median calculation","prompt":"I have test scores for 12 students: [55, 62, 71, 78, 83, 88, 91, 66, 74, 80, 57, 95]. What's the 50th percentile score for this class?"}],"resultDescription":"Returns the computed Nth percentile value as a number, calculated using linear interpolation between the closest ranks in the provided dataset.","failureModes":["Empty data array — minItems:1 constraint violated returns validation error","Percentile value outside 0-100 range returns validation error","Non-numeric values in data array cause schema validation failure","Single-element array returns that element for any percentile without interpolation","Payment failure (402) if x402 micropayment not included or insufficient"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call percentile calculation without setting up a statistics library or data science environment. Ideal for AI agents performing ad-hoc quantitative analysis on runtime data such as latency distributions, score cutoffs, or financial metrics, especially when the dataset is small to medium and results are needed immediately inline within an agentic workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T07:20:22.020Z","isFirstParty":false,"canonicalSlug":"stats-percentile-9df438ed"}