# GDP per Capita Weighted Mean Calculator

> GDP per Capita Weighted Mean Calculator 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-18).

Calculates a weighted mean of GDP per capita across up to 200 supplied data rows using nonnegative weights, returning the formula, units, and limitations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-gdp-per-capita-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gdp-per-capita-weighted-mean-calculator-6f1b88ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vsR_JgM7SQvKAma0y_lE2

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-per-capita-weighted-mean-calculator-6f1b88ba -d '<json body>'
```

Example prompt: Calculate the weighted mean GDP per capita for these 4 economies: rows [{gdp: 2000000, population: 1000}, {gdp: 3000000, population: 1500}, {gdp: 1500000, population: 800}, {gdp: 4000000, population: 2000}] with weights [1, 2, 1, 3] — give me the formula and units too.

## When to prefer this

Choose this endpoint when you need a statistically weighted mean of GDP per capita across multiple observations (up to 200), and you want explicit formula documentation and unit clarity alongside the result. It is ideal when you have custom nonnegative weights (e.g. trade shares, portfolio allocations, population shares) that differ from simple arithmetic averaging. Prefer this over pooled ratio calculators when you want a weighted statistical mean rather than an aggregate accounting ratio.

## Known failure modes

- Fewer than 2 rows supplied — minimum array length is 2
- More than 200 rows supplied — exceeds maximum
- Population value of zero supplied — exclusiveMinimum constraint violated
- Weights array length does not match rows array length
- Negative weight values provided — only nonnegative weights allowed
- GDP or population values exceed maximum of 1,000,000,000,000
- Missing required fields (gdp or population) in a row object
- Payment not included or insufficient — endpoint requires 0.01 USDC via x402

## How this service works

GDP per capita - Weighted result mean: Calculate a mean of up to 200 results using supplied nonnegative weights; not a pooled accounting ratio. Metric: GDP per capita. 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

Returns a JSON object containing the weighted mean GDP per capita value, the formula used, the units of measurement, and a note on limitations (e.g. that this is not a pooled accounting ratio and uses only supplied figures).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "gdp",
     "population"
    ],
    "properties": {
     "gdp": {
      "type": "number",
      "default": 1000000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     },
     "population": {
      "type": "number",
      "default": 1000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period",
      "exclusiveMinimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "gdp": 1000000,
     "population": 1000
    },
    {
     "gdp": 1100000,
     "population": 1100
    },
    {
     "gdp": 1000000,
     "population": 1000
    },
    {
     "gdp": 1100000,
     "population": 1100
    }
   ],
   "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-per-capita-weighted-mean-calculator-6f1b88ba/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)
