# Brazil Macro API – Full Summary (Resumo)

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

Returns a single consolidated response containing all key Brazilian macroeconomic indicators: CDI rate, Selic target, IPCA inflation, PTAX USD/BRL exchange rate, and Focus survey forecasts.

## Facts

- Endpoint: GET https://api-macro-br-production.up.railway.app/v1/resumo
- Price: $0.02/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-full-summary-resumo-61d327e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rzaX6tqRviXJk_nsxS5-R

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-full-summary-resumo-61d327e7
```

Example prompt: Give me a full snapshot of Brazil's current macroeconomic indicators — Selic rate, CDI, IPCA inflation, the PTAX USD/BRL exchange rate, and the Focus survey forecasts — all in one go.

## When to prefer this

Use this endpoint when you need all Brazilian macro indicators at once and want to minimize API calls and cost. If you only need one specific metric (e.g. just the Selic rate or just IPCA), use the dedicated sibling endpoints to keep responses lean. This summary endpoint is ideal for dashboards, briefings, or any workflow that requires a holistic view of Brazil's macroeconomic environment in a single round-trip.

## Known failure modes

- Upstream BCB or IBGE data source unavailable — may return stale or error response
- Railway.app hosting downtime causing 502/503
- Payment (x402) not fulfilled — request blocked before reaching data layer
- Data not yet updated for the current period — returns last available period values

## How this service works

All of the above in a single response.

## Output

A single JSON response containing all key Brazilian macroeconomic indicators: the Selic target rate, CDI daily and annualized rates, IPCA latest monthly and 12-month accumulated inflation, official PTAX buy and sell USD/BRL exchange rates, and Focus survey median market forecasts for inflation, Selic, exchange rate, and GDP growth.

## 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-full-summary-resumo-61d327e7/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)
