# 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 exact descriptive statistics (mean, median, mode, std dev, variance, percentiles p25–p99, range, sum, IQR outliers) for an array of up to 100,000 numbers.

## Facts

- Endpoint: POST https://x402.forgemesh.io/descriptive-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-1acaf492
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0VvMo_X6uidMqVV8Lkzwj

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-1acaf492 -d '<json body>'
```

Example prompt: Can you compute the full descriptive stats for this list of response times — mean, median, standard deviation, percentiles up to p99, and flag any IQR outliers? Here are the numbers: [120, 135, 98, 200, 115, 400, 110, 125, 130, 105].

## When to prefer this

Choose this endpoint when you need exact, deterministic descriptive statistics for a large numeric array (up to 100k numbers) in a single call, especially when you need percentiles (p25–p99), IQR outlier detection, and a full statistical summary without writing custom code or spinning up a compute environment.

## Known failure modes

- Array exceeds 100,000 elements — request rejected
- Non-numeric values in the array cause a validation error
- Empty array input returns an error
- Malformed JSON body returns a 400 error
- Payment failure (x402) results in 402 Payment Required response

## How this service works

Statistics API: mean, median, mode, standard deviation, variance, percentiles (p25-p99), range, sum, and IQR outliers for up to 100k numbers — exact, deterministic.

## Output

Returns exact, deterministic descriptive statistics including mean, median, mode, standard deviation, variance, percentiles (p25 through p99), range, sum, and IQR-based outlier identification for the submitted numeric array.

## 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-1acaf492/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)
