# Company Headcount Observations — Trailing Mean Series + Explicit Missing-Value Fill

> Company Headcount Observations — Trailing Mean Series + Explicit 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-19).

Computes a trailing mean time series and fills missing values in company headcount observation data (headcount, open_roles) for up to 200 rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-company-12-154?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/company-headcount-observations-trailing-mean-series-explicit-missing-b3f0a349
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LTmqzJ_6_aKMLbMgmMeOc

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 company-headcount-observations-trailing-mean-series-explicit-missing-b3f0a349 -d '<json body>'
```

Example prompt: I have headcount and open_roles observations for two company groups across several dates — can you compute a trailing mean series with a window of 4 and fill any missing headcount values using the median method?

## When to prefer this

Choose this endpoint when you have company-level headcount or open_roles time series data that needs rolling-window smoothing and/or missing-value imputation in a single pass. It is particularly suited for pre-processing HR or workforce data before visualization or forecasting, and handles up to 200 rows per call at low cost ($0.01 USDC). Prefer this over general analytics tools when you need both trailing mean computation and explicit null-fill in one bundled operation without requiring external data sources.

## Known failure modes

- More than 200 rows submitted — request will be rejected or truncated
- Invalid date format (not YYYY-MM-DD) causes row rejection
- Missing required fields (row_id, company_group, date) trigger validation errors
- Window size larger than number of rows may produce NaN/null results for early rows
- Non-numeric values in headcount or open_roles fields cause processing errors
- Empty rows array returns an error

## How this service works

Company headcount observations — Trailing mean series + Explicit missing-value fill: Trailing mean series + Explicit missing-value fill for supplied company headcount observations records (headcount, open_roles). 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 supplied rows: (1) a trailing mean series where each row's field value is replaced by the rolling mean over the specified window, and (2) the same dataset with explicit missing-value fill applied using the chosen method (zero, mean, or median). Results cover up to 200 rows of company headcount observations.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/company-headcount-observations-trailing-mean-series-explicit-missing-b3f0a349/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)
