# ReportBazaar Macro Military Expenditure Report API

> ReportBazaar Macro Military Expenditure Report API is a paid API for AI agents from reportbazaar.app.workbuddy.host, paid per call via x402, $0.25/call, status unknown (last checked 2026-10-02).

Fetches a macroeconomic report on military expenditure as a percentage of GDP across 20 economies (2015–2025), paid per call in USDC via x402 with no account or API key required.

## Facts

- Endpoint: GET https://reportbazaar.app.workbuddy.host/report/macro-military?utm_source=zero.xyz
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/reportbazaar-macro-military-expenditure-report-api-aac68cc8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CITfstKpd-C7QAZ-I_7wu

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 reportbazaar-macro-military-expenditure-report-api-aac68cc8
```

Example prompt: Pull the military expenditure report as a JSON so I can see how military spending as a percentage of GDP has trended across the 20 covered economies from 2015 to 2025, including the ranking table and volatility data.

## When to prefer this

Choose this endpoint when you need structured, machine-readable macroeconomic data on military expenditure across 20 economies over a decade, without wanting to manage API keys or subscriptions — especially in autonomous agent workflows where x402 micropayments in USDC are already supported. It is ideal for one-off data pulls, policy research, quantitative modeling, or comparative defense economics analysis. Prefer alternatives if you need real-time or daily-updated data, coverage beyond 20 economies, or a broader set of macroeconomic indicators.

## Known failure modes

- 402 Payment Required — USDC payment via x402 not included or insufficient; agent must attach payment header
- Invalid format parameter — only html, json, csv, summary-csv are accepted; unsupported values return an error
- Network or host unavailability — reportbazaar.app.workbuddy.host may be intermittently unreachable
- Stale or incomplete data — coverage gaps may exist for certain economies in certain years, disclosed in the data-quality section

## How this service works

Machine-to-machine macroeconomic report API. Pay per fetch in USDC over x402. No accounts, no API keys.

## Output

Returns a structured report containing military expenditure (% of GDP) data for 20 economies spanning 2015–2025, including key findings, a ranked table, each economy's share of group total, a trend line with R² coefficient, volatility metrics, a full year-by-year data matrix, and a coverage/data-quality disclosure. Available in html, json, csv, or summary-csv format. A free preview is available at /preview/macro-military.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "format": {
       "enum": [
        "html",
        "json",
        "csv",
        "summary-csv"
       ],
       "type": "string",
       "description": "Delivery format. csv is a tidy long panel; summary-csv is one row per economy of derived metrics."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "years": "2015:2025",
  "schema": "/schema/report.json",
  "formats": [
   "html",
   "json",
   "csv",
   "summary-csv"
  ],
  "contains": [
   "key findings",
   "ranking table",
   "share of group total",
   "trend with R²",
   "volatility",
   "full year-by-year matrix",
   "coverage and data-quality disclosure"
  ],
  "economies": 20,
  "indicators": [
   "MS.MIL.XPND.GD.ZS"
  ],
  "contentType": "text/html",
  "description": "Military Expenditure Report",
  "freePreview": "/preview/macro-military",
  "indicatorsLabel": [
   "Military expenditure (% of GDP)"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/reportbazaar-macro-military-expenditure-report-api-aac68cc8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from reportbazaar.app.workbuddy.host](https://www.zero.xyz/host/reportbazaar.app.workbuddy.host/llms.txt)
