# ForgeMesh Descriptive Statistics API

> ForgeMesh Descriptive Statistics API is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Computes a full suite of descriptive statistics (count, mean, median, mode, std dev, variance, percentiles, outliers, and more) for an array of up to 100,000 numbers

## Facts

- Endpoint: POST https://x402.forgemesh.io/math-statistics
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-descriptive-statistics-api-63180d84
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vbmlNgg2skCemfMNTLEEJ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability forgemesh-descriptive-statistics-api-63180d84 -d '<json body>'
```

Example prompt: Can you run full descriptive stats on these numbers — mean, median, mode, standard deviation, percentiles, and flag any outliers? Here's the dataset: [12.4, 15.1, 13.8, 99.2, 14.0, 13.5, 12.9, 14.7, 15.3, 13.1]

## When to prefer this

Choose this endpoint when you need fast, deterministic, and auditable descriptive statistics without spending LLM reasoning tokens on arithmetic — especially for data QA pipelines, monitoring agents checking distributions, or any workflow where numeric accuracy and citability matter. Preferable over asking an LLM to compute statistics directly, eliminating arithmetic-hallucination risk.

## Known failure modes

- Array exceeds 100,000 elements — request rejected
- Empty or missing 'numbers' field — returns validation error
- Non-numeric values in the array — parsing error or rejection
- Payment not provided or insufficient — 402 Payment Required
- Malformed JSON body — 400 Bad Request

## How this service works

Descriptive statistics API: feed up to 100,000 numbers and get count, sum, mean, median, mode, sample standard deviation, variance, min/max/range, percentiles (p25/p50/p75/p90/p99), and IQR-flagged outliers. Deterministic and auditable — cheaper than burning reasoning tokens, zero arithmetic-hallucination risk, and the result can be cited. For data QA, monitoring, and analysis agents.

## Output

Returns count, sum, mean, median, mode, sample standard deviation, variance, min, max, range, p25/p50/p75/p90/p99 percentiles, IQR, and a list of IQR-flagged outlier values — all in a single deterministic, auditable response

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "numbers": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "array or comma-separated string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mean": 27.166667,
  "median": 13.5,
  "outliers_iqr": [
   98
  ],
  "std_dev_sample": 34.749604
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-descriptive-statistics-api-63180d84/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
