# DataForge Pareto Analysis API

> DataForge Pareto Analysis API is a paid API for AI agents from dataforge-production-ba33.up.railway.app, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-14).

Performs Pareto (80/20) analysis on labeled numeric data, returning sorted items with individual and cumulative percentages

## Facts

- Endpoint: POST https://dataforge-production-ba33.up.railway.app/api/pareto?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dataforge-pareto-analysis-api-0e1c88bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0_ecaCHbbkeIZLz8VlfS4

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 dataforge-pareto-analysis-api-0e1c88bd -d '<json body>'
```

Example prompt: Run a Pareto analysis on these sales figures: Product A $40k, Product B $25k, Product C $20k, Product D $10k, Product E $5k — I want to see each one's share and the running cumulative percentage.

## When to prefer this

Use this endpoint when you need a fast, cheap, stateless Pareto (80/20) computation on a labeled dataset without building your own sorting and cumulative-sum logic. At $0.004 per call it is well-suited for agent workflows, automated reporting pipelines, or operational dashboards that need repeated ranked breakdowns without a full analytics platform.

## Known failure modes

- Empty or missing items array returns an error or zero-item result
- Non-numeric values in the value field cause a validation error
- Missing required label or value fields on individual items may cause a 400 error
- All-zero values result in undefined percentage calculations
- Payment failure (402) if USDC payment header is missing or insufficient

## How this service works

Low-cost statistical and analytical micro-APIs for agents and operations workflows.

## Output

Returns an array of items sorted descending by value, each with its label, original value, percentage of total, and cumulative percentage. Also returns the overall total. This lets the caller immediately identify which items cross the 80% cumulative threshold.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "label": {
      "type": "string"
     },
     "value": {
      "type": "number"
     }
    }
   }
  },
  "values": {
   "type": "object",
   "additionalProperties": {
    "type": "number"
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "pct": 40,
    "label": "A",
    "value": 40,
    "cumulativePct": 40
   }
  ],
  "total": 100
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dataforge-pareto-analysis-api-0e1c88bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dataforge-production-ba33.up.railway.app](https://www.zero.xyz/host/dataforge-production-ba33.up.railway.app/llms.txt)
