# Unit Contribution Distribution Histogram

> Unit Contribution Distribution Histogram is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Bins up to 200 unit contribution observations (unit price minus variable cost per unit) into equal-width histogram bins, returning bin edges, counts, and formula metadata.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-unit-contribution-histogram?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/unit-contribution-distribution-histogram-5a587c2f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cN8hesxIzncui0bqOgmQh

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 unit-contribution-distribution-histogram-5a587c2f -d '<json body>'
```

Example prompt: I have 12 products with their unit prices and variable costs — can you bin those unit contribution values into 8 equal-width histogram buckets and show me the distribution with bin edges and counts? Here are the pairs: [20,12], [25,14], [30,18], [22,13], [28,16], [35,20], [18,11], [24,15], [32,19], [27,17], [21,12], [29,16].

## When to prefer this

Choose this endpoint when you have a set of discrete unit price and variable cost observations and need to understand the frequency distribution of resulting contribution margins across equal-width buckets. It is ideal for exploratory profitability analysis, pricing scenario comparison, or quality-checking margin data spread. Prefer this over raw summary statistics when the shape and spread of the distribution matters, not just the mean or total.

## Known failure modes

- Fewer than 2 rows provided — minimum observation count not met
- More than 200 rows supplied — exceeds maximum item limit
- Bins value outside 1–30 range — validation error returned
- Non-numeric values in unit_price or variable_cost_per_unit fields — schema rejection
- All observations identical — zero-width bins may produce degenerate histogram

## How this service works

Unit contribution - Distribution histogram: Bin up to 200 calculated observations into equal-width bins, including edge definitions. Metric: Unit contribution. Supplied figures only; returns JSON with formula, units and limitations. One of 50 calculators with 20 analysis modes. No live feed, financial advice or trade execution. 0.01 USDC includes one bounded distribution histogram report.

## Output

Returns a JSON object containing the histogram bin edges, observation counts per bin, the unit contribution formula (unit price minus variable cost per unit), units description, and any noted limitations — covering up to 200 observations split into up to 30 equal-width bins.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bins": {
   "type": "integer",
   "default": 5,
   "maximum": 30,
   "minimum": 1
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "unit_price",
     "variable_cost_per_unit"
    ],
    "properties": {
     "unit_price": {
      "type": "number",
      "default": 20,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     },
     "variable_cost_per_unit": {
      "type": "number",
      "default": 12,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "unit_price": 20,
     "variable_cost_per_unit": 12
    },
    {
     "unit_price": 22,
     "variable_cost_per_unit": 13.200000000000001
    },
    {
     "unit_price": 20,
     "variable_cost_per_unit": 12
    },
    {
     "unit_price": 22,
     "variable_cost_per_unit": 13.200000000000001
    }
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/unit-contribution-distribution-histogram-5a587c2f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
