# ReportBazaar Macro Military Spend Report API

> ReportBazaar Macro Military Spend 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 global military expenditure and armed forces personnel (2015–2025) across 20 economies, payable per-fetch in USDC via x402.

## Facts

- Endpoint: GET https://reportbazaar.app.workbuddy.host/report/macro-military-spend?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-spend-report-api-b7d0febd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mxlm7A6hj3xLxI3gg4kTM

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-spend-report-api-b7d0febd
```

Example prompt: Pull me the latest global military spending report in JSON format — I want ranking tables, year-by-year data, and trend analysis for all 20 economies from 2015 to 2025.

## When to prefer this

Choose this endpoint when you need structured, pay-per-use macroeconomic data on global military spending without API key registration or subscriptions. Ideal for AI agents that need machine-readable defense budget data on demand, especially when comparing expenditure trends across 20 major economies from 2015–2025. Prefer this over general web search when you need clean, structured data with R², volatility, and ranking metrics pre-computed.

## Known failure modes

- Payment not included or invalid x402 USDC payment → 402 Payment Required response
- Unsupported format parameter value → 400 Bad Request
- Upstream World Bank data unavailable → 503 or stale data warning
- Network timeout on slow connections → connection error

## 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 on military expenditure (current USD) and armed forces personnel totals for 20 economies spanning 2015–2025. Includes key findings, a country ranking table, share-of-group-total figures, trend lines with R² values, 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-spend.

## 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.CD",
   "MS.MIL.TOTL.P1"
  ],
  "contentType": "text/html",
  "description": "Military Expenditure in Dollars Report",
  "freePreview": "/preview/macro-military-spend",
  "indicatorsLabel": [
   "Military expenditure (current US$)",
   "Armed forces personnel, total"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/reportbazaar-macro-military-spend-report-api-b7d0febd/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)
