# Structured Data Observations — Category Frequencies + Equal-Width Histogram

> Structured Data Observations — Category Frequencies + 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-26).

Analyzes structured observations data by computing category frequency counts and equal-width histogram distributions for valid_items or total_items fields, returning two analytical reports for up to 200 rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-web-08-106?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/structured-data-observations-category-frequencies-equal-width-histogram-07dae704
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gHnPgNPLsLvu2ulO5LtzJ

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 structured-data-observations-category-frequencies-equal-width-histogram-07dae704 -d '<json body>'
```

Example prompt: Can you run category frequency counts and an equal-width histogram with 10 bins on my observations dataset — focusing on the valid_items field — for these rows: row-1 / group-a / 2025-01-01 / valid=50 / total=60, row-2 / group-b / 2025-01-02 / valid=30 / total=40, row-3 / group-a / 2025-01-03 / valid=70 / total=80?

## When to prefer this

Choose this endpoint when you need both categorical frequency analysis and numeric histogram distribution computed together in a single paid call for structured observation records containing site_group, date, valid_items, and total_items. Ideal for quality monitoring, inventory, or operational datasets up to 200 rows where you want a dual analytical report cheaply ($0.01 USDC) without needing live data lookup, predictions, or external integrations.

## Known failure modes

- More than 200 rows submitted — request rejected at input validation
- Invalid date format (not YYYY-MM-DD) causes row-level validation failure
- Bins parameter outside 1–30 range causes rejection
- Missing required fields (row_id, site_group, date, valid_items, total_items) per row causes error
- All values null for chosen field results in empty or degenerate histogram
- Field enum value not 'valid_items' or 'total_items' causes validation error

## How this service works

Structured data observations — Category frequencies + Equal-width histogram: Category frequencies + Equal-width histogram for supplied structured data observations records (valid_items, total_items). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.

## Output

Two analytical reports: (1) category frequency counts showing how many records fall into each site_group category, and (2) an equal-width histogram with the specified number of bins showing the distribution of the chosen numeric field (valid_items or total_items) across all supplied rows. Results cover up to 200 input rows using local analytical engines with no external lookups.

## 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",
     "site_group",
     "date",
     "valid_items",
     "total_items"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "site_group": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "total_items": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "valid_items": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "row_id": "row-1",
     "site_group": "group-a",
     "total_items": 1,
     "valid_items": 10
    },
    {
     "date": "2026-10-02",
     "row_id": "row-2",
     "site_group": "group-b",
     "total_items": 2,
     "valid_items": 20
    },
    {
     "date": "2026-10-03",
     "row_id": "row-3",
     "site_group": "group-a",
     "total_items": 3,
     "valid_items": 15
    },
    {
     "date": "2026-10-04",
     "row_id": "row-4",
     "site_group": "group-b",
     "total_items": 4,
     "valid_items": 30
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "valid_items",
    "total_items"
   ],
   "type": "string",
   "default": "valid_items"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/structured-data-observations-category-frequencies-equal-width-histogram-07dae704/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)
