# Research Grant Spending — Category Frequencies + Missing-Value Fill

> Research Grant Spending — Category Frequencies + Missing-Value Fill 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-23).

Computes category frequency distributions and fills missing values (budget_amount or spend_amount) in research grant spending records using zero, mean, or median imputation.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-education-20-112?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/research-grant-spending-category-frequencies-missing-value-fill-dd065eea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_79J1pcEZ7L7RYXbarjWgO

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 research-grant-spending-category-frequencies-missing-value-fill-dd065eea -d '<json body>'
```

Example prompt: I have up to 200 rows of research grant spending records with row_id, course_group, date, budget_amount, and spend_amount — can you run a category frequency report on them and fill in any missing spend_amount values using the median?

## When to prefer this

Choose this endpoint when you have up to 200 rows of research grant spending data and need both a category frequency summary AND missing-value imputation in a single low-cost ($0.01 USDC) call. It is ideal for offline data cleaning and reporting on structured grant records without requiring live lookups or external data sources.

## Known failure modes

- Exceeds 200-row limit — request rejected
- Invalid date format (not YYYY-MM-DD) — validation error
- Missing required fields (row_id, course_group, date) — schema validation failure
- All values in target field are null — mean/median imputation may be undefined
- Invalid enum for field or method parameters — schema error

## How this service works

Research grant spending — Category frequencies + Explicit missing-value fill: Category frequencies + Explicit missing-value fill for supplied research grant spending records (budget_amount, spend_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 the submitted rows: (1) a category frequency table showing how often each course_group value appears across the dataset, and (2) a copy of the rows with missing values in the specified field (budget_amount or spend_amount) explicitly filled using the chosen method (zero, mean, or median).

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/research-grant-spending-category-frequencies-missing-value-fill-dd065eea/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)
