# MacroLens Trade Analysis API

> MacroLens Trade Analysis API is a paid API for AI agents from marcrons.vercel.app, paid per call via x402, $0.4/call, status unknown (last checked 2026-10-17).

Analyzes international trade data starting from a given date using FRED and World Bank data processed through an LLM for macro-economic insights

## Facts

- Endpoint: POST https://marcrons.vercel.app/api/trade?utm_source=zero.xyz
- Price: $0.4/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macrolens-trade-analysis-api-3456be6b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RnG6RI2hsgrmVg_JNBrpk

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-trade-analysis-api-3456be6b -d '<json body>'
```

Example prompt: Using MacroLens, pull an AI-powered trade analysis starting from January 2023 — I want to understand the macro trends in international trade activity, including any FRED and World Bank signals, interpreted by the LLM.

## When to prefer this

Choose this endpoint when you need AI-synthesized macro trade intelligence combining FRED and World Bank datasets with LLM interpretation, rather than raw data feeds. Ideal for agents that need a narrative macro summary of international trade conditions rather than structured time-series data alone. Best suited for financial research, investment analysis, and economic briefing use cases where interpreted insights are more valuable than raw indicators.

## Known failure modes

- Missing or invalid 'start' date parameter returns an error
- Malformed date string in start field may cause parsing failure
- FRED or World Bank data unavailability may result in empty data object
- Payment not fulfilled (x402) results in 402 Payment Required response
- LLM inference timeout may return partial or no analysis
- Start date too far in the past may exceed available data range

## How this service works

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

## Output

Returns a JSON object with a success boolean and a data object containing AI-interpreted trade analysis derived from FRED and World Bank datasets, including macroeconomic trade indicators and LLM-generated narrative insights for the specified time period.

## Request schema (JSON Schema)

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

## 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-trade-analysis-api-3456be6b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from marcrons.vercel.app](https://www.zero.xyz/host/marcrons.vercel.app/llms.txt)
