# agentshop — Macro FDI Report API (x402)

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

Fetches a macroeconomic Foreign Direct Investment (FDI) net inflows report covering 20 economies from 2015–2025, paid per-fetch in USDC via x402 protocol with no API keys required.

## Facts

- Endpoint: GET https://reportbazaar.app.workbuddy.host/report/macro-fdi?utm_source=zero.xyz
- Price: $0.28/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshop-macro-fdi-report-api-x402-8afcd56e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DzlXT8bgCJMa0APSdbX_b

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 agentshop-macro-fdi-report-api-x402-8afcd56e
```

Example prompt: Pull the latest Foreign Direct Investment net inflows report covering 20 economies from 2015 to 2025 and give it to me as JSON — I need the rankings, trends, and volatility breakdown.

## When to prefer this

Choose this endpoint when you need machine-readable, pay-per-use FDI macroeconomic data without account registration or API key management. It is ideal for AI agents that need on-demand economic intelligence with micropayment billing (USDC via x402), covering 20 economies over a decade-long panel. Prefer this over traditional data APIs when you want zero-friction access with transparent per-call pricing and multiple output formats including analytics-ready CSV.

## Known failure modes

- Payment not settled via x402 — 402 response returned requiring USDC payment before data is served
- Invalid format query parameter — only html, json, csv, or summary-csv are accepted
- Upstream World Bank data unavailable — report may be stale or return an error
- Network timeout if the report generation takes too long for large format responses

## 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 Foreign Direct Investment net inflows (World Bank indicator BX.KLT.DINV.CD.WD) covering 20 economies across 2015–2025. Output includes key findings, an economy ranking table, share of group total, trend lines with R², volatility scores, a full year-by-year data matrix, and a coverage/data-quality disclosure. Available in HTML, JSON, CSV (long panel), or summary-CSV (one row per economy with derived metrics) formats.

## 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": [
   "BX.KLT.DINV.CD.WD"
  ],
  "contentType": "text/html",
  "description": "Foreign Direct Investment Net Inflows Report",
  "freePreview": "/preview/macro-fdi",
  "indicatorsLabel": [
   "Foreign direct investment, net inflows (current US$)"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshop-macro-fdi-report-api-x402-8afcd56e/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)
