# Fiscal Space Macroeconomic Report API (x402)

> Fiscal Space Macroeconomic Report API (x402) 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-09-29).

Returns a structured macroeconomic report on fiscal space — covering government debt, interest payments, and tax revenue — for a set of economies over 2015–2025, paid per fetch via x402 in USDC.

## Facts

- Endpoint: GET https://reportbazaar.app.workbuddy.host/report/theme-fiscal-space?utm_source=zero.xyz
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fiscal-space-macroeconomic-report-api-x402-4d520a39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VHSmSNwFta0R0toXlyTdT

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 fiscal-space-macroeconomic-report-api-x402-4d520a39
```

Example prompt: Pull the fiscal space report for the 10 economies — I need central government debt, interest payments, and tax revenue from 2015 to 2025 — and give it to me as JSON so I can run my own analysis.

## When to prefer this

Choose this endpoint when you need pre-computed, analysis-ready fiscal sustainability data (debt, interest burden, tax revenue) for a cross-country panel without signing up for an account or managing API keys. It is ideal for agents that can handle x402 micropayments natively and need structured macroeconomic output in multiple formats (JSON for pipelines, CSV for modelling, HTML for display). Prefer alternatives if you need custom country selection, real-time data, or indicators beyond the three fiscal-space metrics.

## Known failure modes

- Payment not accepted or insufficient USDC balance — x402 payment failure returns HTTP 402
- Invalid format query parameter value returns error
- Upstream World Bank data unavailable or stale — report may have coverage gaps noted in disclosure
- Network timeout for the payment + data fetch flow
- Unsupported HTTP method returns error

## How this service works

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

## Output

A report covering 10 economies from 2015 to 2025 across three World Bank fiscal indicators (central government debt % of GDP, interest payments % of expense, tax revenue % of GDP), delivered in the requested format (HTML, JSON, CSV, or summary-CSV). Includes key findings, a ranking table, share-of-group-total breakdowns, trend lines with R², volatility metrics, a full year-by-year data matrix, and a coverage/data-quality disclosure.

## 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": 10,
  "indicators": [
   "GC.DOD.TOTL.GD.ZS",
   "GC.XPN.INTP.ZS",
   "GC.TAX.TOTL.GD.ZS"
  ],
  "contentType": "text/html",
  "description": "Fiscal Space Report — Debt, Interest and Revenue",
  "freePreview": "/preview/theme-fiscal-space",
  "indicatorsLabel": [
   "Central government debt, total (% of GDP)",
   "Interest payments (% of expense)",
   "Tax revenue (% of GDP)"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fiscal-space-macroeconomic-report-api-x402-4d520a39/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)
