# MacroLens Macro Intelligence API — Country Analysis

> MacroLens Macro Intelligence API — Country Analysis 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-14).

Returns AI-generated macro-economic analysis for a given country, drawing on FRED and World Bank data processed by the MiMo LLM

## Facts

- Endpoint: POST https://marcolens.vercel.app/api/analyze
- Price: $0.35/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macrolens-macro-intelligence-api-country-analysis-16d3e451
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8fUWjYGhuLrN0-8LO248W

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-macro-intelligence-api-country-analysis-16d3e451 -d '<json body>'
```

Example prompt: Can you pull a full macro-economic analysis for Germany — I want AI-generated insights on GDP, inflation, monetary policy, and key economic risks, sourced from FRED and World Bank data?

## When to prefer this

Choose this endpoint when you need a synthesized, AI-narrative macro-economic assessment of a specific country rather than raw time-series data. It is especially useful when you want a single call to combine multiple data sources (FRED + World Bank) and deliver an interpreted, human-readable economic briefing rather than querying each data source individually. Best for investment research, country risk assessment, economic briefings, and policy analysis workflows.

## Known failure modes

- Country name not recognized or misspelled — returns success: false or empty data
- FRED or World Bank data unavailable for the requested country — partial or no data returned
- MiMo LLM inference timeout — delayed or missing analysis
- Payment failure via x402 on Base — request not processed
- Rate limiting or service unavailability on Vercel hosting — 503 or timeout

## How this service works

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

## Output

A JSON object with a success boolean and a data object containing AI-generated macroeconomic analysis for the requested country, synthesizing FRED and World Bank indicators interpreted by the MiMo LLM — likely including GDP trends, inflation, monetary conditions, fiscal position, and qualitative economic assessment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "country"
 ],
 "properties": {
  "country": {
   "type": "string",
   "description": "country"
  }
 }
}
```

## 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-macro-intelligence-api-country-analysis-16d3e451/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)
