# Brazil Macro API – Focus Survey Forecasts

> Brazil Macro API – Focus Survey Forecasts is a paid API for AI agents from api-macro-br-production.up.railway.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Returns median market forecasts for Brazil's inflation (IPCA), Selic rate, USD/BRL exchange rate, and GDP growth for the current and next calendar year, sourced from the BCB Focus survey.

## Facts

- Endpoint: GET https://api-macro-br-production.up.railway.app/v1/focus
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brazil-macro-api-focus-survey-forecasts-96940785
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__DCuPfZtl6XaI3XiQliAD

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 brazil-macro-api-focus-survey-forecasts-96940785
```

Example prompt: What are the current BCB Focus survey median forecasts for Brazil's inflation, Selic rate, dollar exchange rate, and GDP growth for this year and next year?

## When to prefer this

Use this endpoint when you need a single call that returns all four key Brazilian macroeconomic consensus forecasts (inflation, Selic, FX, GDP) for both the current and next calendar year. Prefer this over sibling endpoints (spot Selic, IPCA, PTAX, CDI) when you need forward-looking market expectations rather than current realized figures, or when you need a multi-indicator macro snapshot in one request.

## Known failure modes

- BCB Focus survey data temporarily unavailable — API may return 503 or empty payload
- Upstream data delay if the BCB has not yet published the latest Focus readout
- Network timeout from the Railway-hosted deployment under load
- Payment failure (402) if x402 payment header is missing or insufficient (requires $0.05 USDC)

## How this service works

Focus survey: median market forecasts for inflation, the Selic rate, the exchange rate and GDP growth, for the current and next calendar year.

## Output

A JSON object containing median market forecasts from the BCB Focus survey for: IPCA consumer inflation, Selic target rate, USD/BRL exchange rate, and GDP growth rate — each broken out for the current calendar year and the next calendar year.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brazil-macro-api-focus-survey-forecasts-96940785/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api-macro-br-production.up.railway.app](https://www.zero.xyz/host/api-macro-br-production.up.railway.app/llms.txt)
