# BOJ Macro Snapshot API (x402)

> BOJ Macro Snapshot API (x402) is a paid API for AI agents from x402-boj-macro-snapshot.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-27).

Returns a real-time snapshot of Bank of Japan macroeconomic indicators including policy rate, monetary base, CPI, and current account balance, gated behind x402 micropayment on Base mainnet.

## Facts

- Endpoint: GET https://x402-boj-macro-snapshot.vercel.app/api/boj/macro-snapshot?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/boj-macro-snapshot-api-x402-f9c55a49
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qmo9kuMwEpF8kYRJoxu8e

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 boj-macro-snapshot-api-x402-f9c55a49
```

Example prompt: Can you pull the latest Bank of Japan macro snapshot for me — I need the current policy rate, monetary base, CPI year-over-year, and current account balance?

## When to prefer this

Choose this endpoint when you need a quick, structured BOJ macroeconomic snapshot without building your own scraper against the Bank of Japan's website. It is ideal for agents that need Japan monetary policy data on-demand with micropayment access via x402 on Base mainnet. Best suited for lightweight reads where a single consolidated payload of key indicators (rate, monetary base, CPI, current account) suffices, rather than deep historical time-series queries.

## Known failure modes

- Payment not processed — x402 payment header missing or rejected, returns 402 Payment Required
- Stale data — freshness.stale returns true if the upstream BOJ data feed has not been refreshed recently
- Upstream BOJ source unavailable — service may return an error or cached stale snapshot
- Network timeout — Vercel serverless cold start may cause occasional latency spikes

## How this service works

Learning-only BOJ-themed macro snapshot API for x402 v2 Base mainnet verification.

## Output

A JSON object containing: service name, asOf timestamp, source attribution (name, URL, note), freshness metadata (fetchedAt, stale boolean), and a data object with policyRatePercent, monetaryBaseTrillionYen, currentAccountBalanceTrillionYen, cpiYearOverYearPercent, and an observations array of labeled metric objects (label, value, unit).

## 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",
     "required": [],
     "properties": {},
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "service",
      "asOf",
      "source",
      "data",
      "freshness"
     ],
     "properties": {
      "asOf": {
       "type": "string"
      },
      "data": {
       "type": "object",
       "required": [
        "policyRatePercent",
        "monetaryBaseTrillionYen",
        "currentAccountBalanceTrillionYen",
        "cpiYearOverYearPercent",
        "observations"
       ],
       "properties": {
        "observations": {
         "type": "array",
         "items": {
          "type": "object",
          "required": [
           "label",
           "value",
           "unit"
          ],
          "properties": {
           "unit": {
            "type": "string"
           },
           "label": {
            "type": "string"
           },
           "value": {
            "type": "number"
           }
          },
          "additionalProperties": false
         }
        },
        "policyRatePercent": {
         "type": "number"
        },
        "cpiYearOverYearPercent": {
         "type": "number"
        },
        "monetaryBaseTrillionYen": {
         "type": "number"
        },
        "currentAccountBalanceTrillionYen": {
         "type": "number"
        }
       },
       "additionalProperties": false
      },
      "source": {
       "type": "object",
       "required": [
        "name",
        "url",
        "note"
       ],
       "properties": {
        "url": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "note": {
         "type": "string"
        }
       },
       "additionalProperties": false
      },
      "service": {
       "type": "string"
      },
      "freshness": {
       "type": "object",
       "required": [
        "fetchedAt",
   
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/boj-macro-snapshot-api-x402-f9c55a49/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-boj-macro-snapshot.vercel.app](https://www.zero.xyz/host/x402-boj-macro-snapshot.vercel.app/llms.txt)
