# MacroLens Compare Countries — Macro Intelligence API

> MacroLens Compare Countries — Macro Intelligence API is a paid API for AI agents from marcolens.vercel.app, paid per call via x402, $0.35/call, status unknown (last checked 2026-09-15).

Compares macroeconomic indicators across multiple countries using FRED and World Bank data, analyzed by AI (MiMo LLM)

## Facts

- Endpoint: POST https://marcolens.vercel.app/api/compare
- Price: $0.35/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macrolens-compare-countries-macro-intelligence-api-44e51ff0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jQnwTP5-jjmRPgENLe9x5

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 macrolens-compare-countries-macro-intelligence-api-44e51ff0 -d '<json body>'
```

Example prompt: Compare the macroeconomic profiles of the United States, China, and Germany — I want to see how their key indicators like GDP, inflation, and trade stack up against each other.

## When to prefer this

Choose this endpoint when you need AI-synthesized side-by-side macroeconomic comparisons across two or more countries, especially when you want natural language interpretation of economic indicators on top of raw data. Prefer over manual data fetching from FRED or World Bank when you need a unified, analyst-style comparison in a single call.

## Known failure modes

- Missing or empty 'countries' array — returns validation error
- Unrecognized country names or codes — may return partial results or error
- Payment not included or insufficient — x402 payment required before response
- Downstream FRED or World Bank data unavailable — may return incomplete indicator data
- Too many countries in a single request — may hit processing limits

## How this service works

AI-powered macro-economic analysis. FRED + World Bank data + MiMo LLM. 20 endpoints. x402 on Base.

## Output

Returns a structured data object containing AI-generated comparative macroeconomic analysis across the specified countries, drawing on FRED and World Bank datasets. Includes key economic indicators (e.g., GDP, inflation, trade, unemployment) benchmarked side by side, with a success flag indicating whether the analysis completed successfully.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "countries"
 ],
 "properties": {
  "countries": {
   "type": "array",
   "description": "countries"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success"
 ],
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/macrolens-compare-countries-macro-intelligence-api-44e51ff0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from marcolens.vercel.app](https://www.zero.xyz/host/marcolens.vercel.app/llms.txt)
