Math & Statistics API
35+ math and statistics endpoints — safe expression evaluation, linear regression, correlation, normal distribution, t-test, moving averages, RSI, MACD, Bollinger Bands.
Math & Statistics API endpoints
| Method | Endpoint | Description |
|---|---|---|
| Math - Basic | ||
| POST |
/api/math_combinations /api/math_combinations |
Calculate combinations nCr (n choose r) |
| POST |
/api/math_proportion /api/math_proportion |
Solve proportions a/b = c/d — provide 3 values, find the 4th |
| POST |
/api/math_lcm /api/math_lcm |
Least Common Multiple of two or more integers |
| POST |
/api/math_round /api/math_round |
Round a number to N decimal places with configurable mode |
| POST |
/api/math_factorial /api/math_factorial |
Calculate factorial of n (max 170 to avoid Infinity) |
| POST |
/api/math_prime_factors /api/math_prime_factors |
Prime factorization of a number |
| POST |
/api/math_percentage /api/math_percentage |
Calculate percentage from value+total, or value from percentage+total |
| POST |
/api/math_gcd /api/math_gcd |
Greatest Common Divisor of two or more integers (Euclidean algorithm) |
| POST |
/api/math_evaluate /api/math_evaluate |
Safely evaluate a math expression (no eval). Supports +,-,*,/,^,() |
| POST |
/api/math_fibonacci /api/math_fibonacci |
Calculate the Nth Fibonacci number (0-indexed, max 78) |
| POST |
/api/math_permutations /api/math_permutations |
Calculate permutations nPr |
| POST |
/api/math_prime_check /api/math_prime_check |
Check if a number is prime |
| Math - Statistics | ||
| POST |
/api/stat_mean /api/stat_mean |
Calculate arithmetic mean of an array |
| POST |
/api/stat_outlier_detect /api/stat_outlier_detect |
Detect outliers using the IQR method (below Q1-1.5*IQR or above Q3+1.5*IQR) |
| POST |
/api/stat_quartiles /api/stat_quartiles |
Calculate Q1, Q2 (median), Q3, and IQR |
| POST |
/api/stat_std_dev /api/stat_std_dev |
Calculate standard deviation (population and sample) |
| POST |
/api/stat_iqr /api/stat_iqr |
Calculate interquartile range |
| POST |
/api/stat_median /api/stat_median |
Calculate median of an array |
| POST |
/api/stat_percentile /api/stat_percentile |
Calculate a specific percentile value from an array |
| POST |
/api/stat_variance /api/stat_variance |
Calculate variance (population and sample) |
| POST |
/api/stat_mode /api/stat_mode |
Find mode(s) of an array |
| POST |
/api/stat_z_score /api/stat_z_score |
Calculate Z-score and corresponding percentile |
| Math - Correlation | ||
| POST |
/api/stat_spearman /api/stat_spearman |
Calculate Spearman rank correlation coefficient |
| POST |
/api/stat_correlation /api/stat_correlation |
Calculate Pearson correlation coefficient between two arrays |
| POST |
/api/stat_covariance /api/stat_covariance |
Calculate covariance between two arrays |
| POST |
/api/stat_linear_regression /api/stat_linear_regression |
Simple linear regression returning slope, intercept, R², and equation |
| Math - Distribution | ||
| POST |
/api/stat_t_test /api/stat_t_test |
Independent two-sample t-test |
| POST |
/api/stat_normal_pdf /api/stat_normal_pdf |
Normal distribution probability density function |
| POST |
/api/stat_chi_square /api/stat_chi_square |
Calculate chi-square test statistic from observed and expected frequencies |
| POST |
/api/stat_normal_cdf /api/stat_normal_cdf |
Normal distribution CDF using Abramowitz and Stegun approximation |
| Math - Financial Stats | ||
| POST |
/api/stat_rsi /api/stat_rsi |
Calculate Relative Strength Index |
| POST |
/api/stat_bollinger_bands /api/stat_bollinger_bands |
Calculate Bollinger Bands (SMA +/- N standard deviations) |
| POST |
/api/stat_macd /api/stat_macd |
Calculate MACD (Moving Average Convergence Divergence) |
| POST |
/api/stat_ema /api/stat_ema |
Calculate Exponential Moving Average |
| POST |
/api/stat_moving_average /api/stat_moving_average |
Calculate Simple Moving Average |
Math & Statistics API pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO | $9.99 / month | — |
|
| ULTRA | Free | — |
|
| MEGA | Free | — |
|