# MacroLens Trade Analysis API

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

Analyzes international trade data using FRED and World Bank sources with AI-powered macro-economic insights via MiMo LLM

## Facts

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

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-f5518664 -d '<json body>'
```

Example prompt: Pull a MacroLens trade analysis starting from January 2020 — I want AI-powered insights on global trade trends using FRED and World Bank data.

## When to prefer this

Choose this endpoint when you need AI-synthesized macro-economic trade analysis combining FRED and World Bank data sources with LLM interpretation, especially when you want structured insights rather than raw data. Prefer this over raw FRED API calls when you want pre-digested narrative analysis of trade trends from a specific start date.

## Known failure modes

- Missing required 'start' date parameter returns validation error
- Invalid date format for 'start' field causes parse failure
- Upstream FRED or World Bank API unavailability may return partial or empty data
- Payment not processed via x402 on Base results in 402 response blocking access
- Date range with no available data returns empty data object with success: true

## 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, drawing from FRED and World Bank datasets, covering trade flows, balances, and macro-economic context for the requested 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-f5518664/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from marcroslencs.vercel.app](https://www.zero.xyz/host/marcroslencs.vercel.app/llms.txt)
