# MacroLens Compare Countries Endpoint

> MacroLens Compare Countries Endpoint is a paid API for AI agents from v1macros-lensys.vercel.app, paid per call via x402, $0.15/call, status unknown (last checked 2026-12-02).

Compares macroeconomic indicators across multiple countries using FRED, World Bank data, and AI-powered analysis via MiMo LLM

## Facts

- Endpoint: POST https://v1macros-lensys.vercel.app/api/compare?utm_source=zero.xyz
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macrolens-compare-countries-endpoint-656a7432
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8VLKkEY3ydrWzkZDRU1dd

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-endpoint-656a7432 -d '<json body>'
```

Example prompt: Can you compare the macroeconomic performance of the United States, Germany, and Japan — things like GDP growth, inflation, and debt levels — and tell me which country looks strongest right now?

## When to prefer this

Use this endpoint when you need AI-synthesized cross-country macroeconomic comparison rather than raw data lookup. It is ideal when comparing 2 or more countries on broad economic health, since the MiMo LLM adds interpretive context on top of FRED and World Bank data. Prefer this over single-country endpoints when the user's goal is benchmarking or ranking countries by economic indicators.

## Known failure modes

- Invalid or unrecognized country names return error or empty data
- Empty countries array may return validation error
- Countries with limited FRED/World Bank data coverage may return incomplete comparisons
- Payment failure on Base blockchain prevents call from completing
- Timeout if LLM analysis takes too long for large country sets
- success: false returned with no data if upstream data sources are unavailable

## How this service works

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

## Output

Returns a structured object with a success flag and a data payload containing AI-interpreted comparative macroeconomic indicators for the specified countries, sourced from FRED and World Bank datasets and analyzed by the MiMo LLM. Includes metrics such as GDP growth, inflation, debt ratios, unemployment, and other key macro variables presented in a comparable format across the requested countries.

## 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-endpoint-656a7432/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from v1macros-lensys.vercel.app](https://www.zero.xyz/host/v1macros-lensys.vercel.app/llms.txt)
