Statistics
The /statistics endpoint calculates descriptive statistics on a list of numbers.
How it works?
All measures are computed on the full population (not a sample). variance and stddev use population formulas (divide by N). mode returns all values tied for the highest frequency. mean, median, variance, and stddev are rounded to 6 decimal places.
curl -X GET \ "https://api.moxon.dev/v6/statistics"Send the request to see the response here.
valuesstringrequiredComma-separated list of numbers (max 1000 values)
countnumberNumber of values
sumnumberSum of all values
minnumberMinimum value
maxnumberMaximum value
rangenumberDifference between max and min
meannumberArithmetic mean
mediannumberMedian value
modenumber[]Most frequent value(s)
variancenumberPopulation variance
stddevnumberStandard deviation
mean,median,variance, andstddevare returned with up to 6 decimal places of precision.
If parameters are missing or invalid, the API will return an error:
- 400
Please provide a comma-separated list of numbers (?values=…)Thevaluesparameter is missing or invalid
Last updated on September 12, 2026