Statistics of numbers: mean, median, standard deviation, percentiles
No account. Pay by card from $1 and your key appears right after payment. Get a key by card
Descriptive statistics for a list of numbers: count, sum, mean, median, mode, min, max, range, population and sample variance and standard deviation, quartiles with IQR, and the 90th, 95th and 99th percentiles (linear interpolation). Up to 10,000 numbers, comma or space separated. Use to summarise measurements, latencies, prices or scores without a spreadsheet.
$0.001 per call with prepaid credits: $1 by card pays for 1,000 calls, with no account and no subscription.
Inputs
| Name | Type | Description |
|---|---|---|
values (required) | string | Numbers separated by commas, spaces or new lines |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/math/stats?values=12%2C%2015%2C%2015%2C%2018%2C%2021%2C%2024%2C%2030%2C%2045"
Node.js
const r = await fetch("https://glyphtools.com/math/stats?values=12%2C%2015%2C%2015%2C%2018%2C%2021%2C%2024%2C%2030%2C%2045", {
headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header
Python
import requests
r = requests.get("https://glyphtools.com/math/stats?values=12%2C%2015%2C%2015%2C%2018%2C%2021%2C%2024%2C%2030%2C%2045", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()
Or one of your 3 free calls, no key — the same request with &trial=1 on the end:
curl "https://glyphtools.com/math/stats?values=12%2C%2015%2C%2015%2C%2018%2C%2021%2C%2024%2C%2030%2C%2045&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"count": 8,
"sum": 180,
"mean": 22.5,
"median": 19.5,
"mode": [
15
],
"min": 12,
"max": 45,
"range": 33,
"variance": 101.25,
"stdDev": 10.0623058987,
"sampleVariance": 115.7142857143,
"sampleStdDev": 10.757057484,
"q1": 15,
"q3": 25.5,
"iqr": 10.5,
"p90": 34.5,
"p95": 39.75,
"p99": 43.95
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is math_stats, and the first 10 successful calls are free:
https://glyphtools.com/mcp