# World Bank Military Expenditure (% of GDP) Time Series

> World Bank Military Expenditure (% of GDP) Time Series is a paid API for AI agents from proxy.suverse.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Returns World Bank Open Data military expenditure as a share of GDP for any country by ISO code, as a yearly time series requiring no API key.

## Facts

- Endpoint: POST https://proxy.suverse.io/v1/data/suverse-wb-military-expenditure
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/world-bank-military-expenditure-of-gdp-time-series-477b5a13
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7GaiqCbqCOp8ZBOIndvPE

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 world-bank-military-expenditure-of-gdp-time-series-477b5a13 -d '<json body>'
```

Example prompt: Pull the full World Bank military expenditure time series for China — I want every year's defense spending as a percentage of GDP — ISO code CN.

## When to prefer this

Choose this endpoint when you need structured, multi-year World Bank military expenditure as a percentage of GDP for any country by ISO code, without needing your own World Bank API key. It is ideal for macro, geopolitical, and cross-country demographic research agents that need consistent, authoritative defense spending data without building a World Bank integration from scratch. Prefer this over raw World Bank API calls when you want a proxied, agent-friendly interface with per-call micropayment pricing.

## Known failure modes

- Invalid or unrecognized ISO country code returns empty or error response
- Country has no World Bank military expenditure data (e.g. some small or restricted nations)
- Malformed request body causes a 400 error
- Payment not completed via x402 protocol results in 402 response
- World Bank upstream data unavailability causes service disruption

## How this service works

Military Expenditure Share Of GDP for any country by ISO code as a yearly World Bank Open Data time series, no key. Returns country, year, and value. For AI agents doing macro, demographic, and cross country analysis.

## Output

Returns a time series array for the requested country, with each record containing the country name or ISO code, the year, and the military expenditure value expressed as a percentage of GDP, sourced from World Bank Open Data. No API key is required.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/world-bank-military-expenditure-of-gdp-time-series-477b5a13/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from proxy.suverse.io](https://www.zero.xyz/host/proxy.suverse.io/llms.txt)
