# GDP Expenditure Identity – Weighted Result Mean

> GDP Expenditure Identity – Weighted Result Mean 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).

Calculates a weighted mean of GDP expenditure identity values across up to 200 supplied data rows using user-specified nonnegative weights.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-gdp-expenditure-weighted-mean?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/gdp-expenditure-identity-weighted-result-mean-86b9f8d4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_34GpyFYOol10isfXPGtgw

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 gdp-expenditure-identity-weighted-result-mean-86b9f8d4 -d '<json body>'
```

Example prompt: Can you calculate a weighted mean of the GDP expenditure identity across these 4 periods — consumption 600, investment 200, government purchases 250, exports 150, imports 200 for periods 1 and 3, and consumption 660, investment 220, government purchases 275, exports 165, imports 220 for periods 2 and 4 — using weights of 1, 2, 1, 2?

## When to prefer this

Choose this endpoint when you need to compute a weighted mean of GDP expenditure identity values across multiple observations (countries, periods, scenarios) and require a structured JSON response with formula and units. Prefer this over a single-calculation endpoint when aggregating more than one GDP data point with differential weighting.

## Known failure modes

- Mismatched array lengths between rows and weights returns an error
- Weights containing negative values are rejected
- Fewer than 2 rows or weights provided causes validation failure
- Component values exceeding maximum bounds (1e12) are rejected
- Non-numeric values in rows or weights fields cause schema validation errors

## How this service works

GDP expenditure identity - Weighted result mean: Calculate a mean of up to 200 results using supplied nonnegative weights; not a pooled accounting ratio. Metric: GDP expenditure identity. Supplied figures only; returns JSON with formula, units and limitations. One of 50 calculators with 20 analysis modes. No live feed, financial advice or trade execution. 0.01 USDC includes one bounded weighted result mean report.

## Output

A JSON object containing the weighted mean GDP value computed via the expenditure identity (C + I + G + NX), along with the formula used, units, and stated limitations of the calculation. No live data, financial advice, or projections are included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "consumption",
     "investment",
     "government_purchases",
     "exports",
     "imports"
    ],
    "properties": {
     "exports": {
      "type": "number",
      "default": 150,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     },
     "imports": {
      "type": "number",
      "default": 200,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     },
     "investment": {
      "type": "number",
      "default": 200,
      "maximum": 1000000000000,
      "minimum": -1000000000000,
      "description": "Amount in a consistent supplied currency and reporting period"
     },
     "consumption": {
      "type": "number",
      "default": 600,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     },
     "government_purchases": {
      "type": "number",
      "default": 250,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "exports": 150,
     "imports": 200,
     "investment": 200,
     "consumption": 600,
     "government_purchases": 250
    },
    {
     "exports": 165,
     "imports": 220.00000000000003,
     "investment": 220.00000000000003,
     "consumption": 660,
     "government_purchases": 275
    },
    {
     "exports": 150,
     "imports": 200,
     "investment": 200,
     "consumption": 600,
     "government_purchases": 250
    },
    {
     "exports": 165,
     "imports": 220.00000000000003,
     "investment": 220.00000000000003,
     "consumption": 660,
     "government_purchases": 275
    }
   ],
   "maxItems": 200,
   "minItems": 2
  },
  "weights": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000,
    "minimum": 0
   },
   "default": [
    1,
    2,
    1,
    2
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gdp-expenditure-identity-weighted-result-mean-86b9f8d4/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)
