# Inventory Counts Equal-Width Histogram

> Inventory Counts Equal-Width 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-19).

Computes an equal-width histogram over book_units or counted_units values from up to 200 inventory count records, binned into 1–30 equal-width intervals.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-inventory-counts-histogram?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/inventory-counts-equal-width-histogram-62c0bd52
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yV-Mg0urhfIMJkkvQo96N

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 inventory-counts-equal-width-histogram-62c0bd52 -d '<json body>'
```

Example prompt: Generate an equal-width histogram with 10 bins for the book_units field from my inventory count records: warehouse group-a had 100 units on 2024-01-01, group-b had 250 on 2024-01-02, group-a had 175 on 2024-01-03, and group-b had 320 on 2024-01-04.

## When to prefer this

Choose this endpoint when you need a fast, local equal-width frequency distribution of inventory unit values (book or counted) without any external data enrichment or forecasting. Ideal for exploratory distribution analysis, audit reporting, and detecting clustering or outliers in warehouse inventory counts with up to 200 records at minimal cost ($0.01 USDC).

## Known failure modes

- Input array is empty or missing — returns validation error
- More than 200 rows supplied — rejected with max-items error
- Invalid date format (not YYYY-MM-DD) — schema validation failure
- bins value outside 1–30 range — rejected with min/max constraint error
- field value not one of book_units or counted_units — enum validation error
- All values are null for the selected field — may return empty or degenerate histogram

## How this service works

Inventory counts - Equal-width histogram: Equal-width histogram for Inventory counts. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded equal-width histogram deliverable.

## Output

Returns an equal-width histogram with up to 30 bins, where each bin includes its lower and upper boundary and the count of records falling within that range for the specified field (book_units or counted_units). Processing is local with no external enrichment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bins": {
   "type": "integer",
   "default": 5,
   "maximum": 30,
   "minimum": 1
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "warehouse",
     "date",
     "book_units",
     "counted_units"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "warehouse": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "book_units": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "counted_units": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "row_id": "row-1",
     "warehouse": "group-a",
     "book_units": 10,
     "counted_units": 1
    },
    {
     "date": "2026-10-02",
     "row_id": "row-2",
     "warehouse": "group-b",
     "book_units": 20,
     "counted_units": 2
    },
    {
     "date": "2026-10-03",
     "row_id": "row-3",
     "warehouse": "group-a",
     "book_units": 15,
     "counted_units": 3
    },
    {
     "date": "2026-10-04",
     "row_id": "row-4",
     "warehouse": "group-b",
     "book_units": 30,
     "counted_units": 4
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "book_units",
    "counted_units"
   ],
   "type": "string",
   "default": "book_units"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/inventory-counts-equal-width-histogram-62c0bd52/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)
