# Public Spending Budgets — Numeric Interval Filter + IQR Outlier Flags

> Public Spending Budgets — Numeric Interval Filter + IQR Outlier Flags is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-22).

Analyzes user-supplied public spending budget records by filtering rows within a numeric interval and flagging IQR-based outliers for planned_amount or actual_amount fields.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-economics-01-130?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/public-spending-budgets-numeric-interval-filter-iqr-outlier-flags-7ed2b87d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eLh1wuknkNR3CYQBmfrIW

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 public-spending-budgets-numeric-interval-filter-iqr-outlier-flags-7ed2b87d -d '<json body>'
```

Example prompt: I have up to 200 rows of public spending budget data with planned and actual amounts — can you filter them to only show records where planned_amount is between 0 and 100, and also flag any IQR outliers in that field?

## When to prefer this

Choose this endpoint when you have a batch of up to 200 public spending budget records (with planned_amount and actual_amount fields) and need both a numeric range filter and IQR-based outlier detection in a single low-cost call. It is ideal for budget auditing, data quality checks, and anomaly screening on pre-collected data without needing live lookups or external enrichment. Prefer this over general statistical tools when the data is already structured per the required schema and you want two complementary reports — interval filtering plus outlier flagging — for a flat $0.01 USDC fee.

## Known failure modes

- Fewer than 1 row supplied — schema minimum not met
- More than 200 rows supplied — exceeds maxItems limit
- Missing required fields (row_id, region, date, planned_amount, actual_amount) on any row
- Invalid date format (must match YYYY-MM-DD pattern)
- Numeric values outside allowed range (-1,000,000,000,000 to 1,000,000,000,000)
- Invalid field enum value (must be 'planned_amount' or 'actual_amount')
- Minimum greater than maximum — may yield empty interval filter result
- All-null values in selected field — IQR cannot be computed

## How this service works

Public spending budgets — Numeric interval filter + IQR outlier flags: Numeric interval filter + IQR outlier flags for supplied public spending budgets records (planned_amount, actual_amount). 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

Returns two analytical reports for up to 200 submitted rows: (1) a numeric interval filter report listing rows where the selected field (planned_amount or actual_amount) falls within the specified minimum/maximum range, and (2) an IQR outlier flag report identifying which rows contain statistically extreme values based on the interquartile range method. No external data is fetched; all analysis is performed locally on the supplied records.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/public-spending-budgets-numeric-interval-filter-iqr-outlier-flags-7ed2b87d/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)
