# AlphaLens Macro Analysis Endpoint

> AlphaLens Macro Analysis Endpoint is a paid API for AI agents from 402alphacook.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-02).

Returns AI-powered macroeconomic analysis and insights given a natural language context query about macro conditions

## Facts

- Endpoint: POST https://402alphacook.vercel.app/api/macro?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alphalens-macro-analysis-endpoint-0bf24c89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GA7UGhd0VpjVq4cbDX-pz

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 alphalens-macro-analysis-endpoint-0bf24c89 -d '<json body>'
```

Example prompt: Can you run a macro analysis on the current interest rate environment and tell me how rising yields might be impacting growth stocks and tech equities right now?

## When to prefer this

Choose this endpoint when you need AI-synthesized macroeconomic intelligence contextualized to a specific question or market scenario, particularly when combining macro factors with equity analysis. Prefer this over raw data feeds when you want interpreted, narrative-form macro insights ready for agent consumption rather than raw economic statistics.

## Known failure modes

- Empty or vague context string may return generic or low-quality analysis
- Missing required 'context' field returns a validation error
- Ambiguous context without specific market or time frame may produce unfocused output
- Service downtime or Vercel cold-start latency may cause timeout
- Payment failure on Base chain results in 402 response and no analysis returned

## How this service works

AI-powered stock analysis, technical indicators, sentiment scoring, and portfolio risk. 11 endpoints. Pay per request via x402 on Base chain.

## Output

Returns a JSON object with a success boolean and a data object containing AI-generated macroeconomic analysis based on the provided context. The data payload typically includes narrative insights, macro factor assessments, and relevant economic indicators interpreted in relation to the query.

## Request schema (JSON Schema)

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

## 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/alphalens-macro-analysis-endpoint-0bf24c89/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402alphacook.vercel.app](https://www.zero.xyz/host/402alphacook.vercel.app/llms.txt)
