# Brazilayer Markets – Brazil Macro Indicators

> Brazilayer Markets – Brazil Macro Indicators is a paid API for AI agents from api.brazilayer.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns a consolidated Brazil macroeconomic snapshot including the Selic rate, IPCA inflation, PTAX USD/BRL exchange rate, and Focus survey market consensus forecasts for inflation, GDP, policy rate, and FX.

## Facts

- Endpoint: GET https://api.brazilayer.com/v1/mercado/indicadores
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brazilayer-markets-brazil-macro-indicators-d23ecef4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Slp5paayWohLVApmnybm1

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 brazilayer-markets-brazil-macro-indicators-d23ecef4
```

Example prompt: Pull the latest Brazil macro snapshot for me — I need the current Selic rate, IPCA inflation figures, the PTAX USD/BRL rate, and the Focus survey forecasts for inflation, GDP, and FX for this year and next before I size my BRL position.

## When to prefer this

Choose this endpoint when you need a single-call Brazil macro context pack aggregating official Banco Central do Brasil data — Selic, IPCA, PTAX, and Focus survey — rather than scraping multiple BCB endpoints individually. Ideal for pre-trade context on BRL pairs, EM macro reports, or automated monitoring of Brazilian monetary policy shifts. Preferable over generic FX or news APIs when authoritative, structured Brazilian macro data is required.

## Known failure modes

- Payment not attached or insufficient USDC: 402 Payment Required
- Central Bank source temporarily unavailable: upstream data fetch failure
- Rate limit exceeded: too many requests in a short window
- Malformed request headers: 400 Bad Request
- Network timeout from Banco Central do Brasil data source

## How this service works

Brazil macro snapshot in one call, straight from the Central Bank: Selic policy rate, IPCA inflation (monthly and 12-month), official PTAX USD/BRL rate, plus the Focus survey — the market's median forecasts for inflation, policy rate, GDP and FX for this year and next, updated weekly. The essential context pack for any agent trading BRL pairs or emerging markets. Free sample, no payment: https://api.brazilayer.com/v1/mercado/amostra

## Output

A single JSON response containing Brazil's current Selic policy rate, IPCA inflation on a monthly and trailing 12-month basis, the official PTAX USD/BRL exchange rate, and the Focus survey's weekly-updated market median forecasts for inflation, policy rate, GDP growth, and FX for the current and following 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"
     ],
     "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/brazilayer-markets-brazil-macro-indicators-d23ecef4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.brazilayer.com](https://www.zero.xyz/host/api.brazilayer.com/llms.txt)
