# Brazilayer Markets Bundle

> Brazilayer Markets Bundle is a paid API for AI agents from api.brazilayer.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Returns a combined Brazilian market snapshot — official USD/BRL PTAX rate, live crypto premium, macro indicators (Selic, IPCA, activity), and latest headlines with sentiment — in a single call, refreshed every 15 minutes.

## Facts

- Endpoint: GET https://api.brazilayer.com/v1/mercado/pacote
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brazilayer-markets-bundle-4832a0b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LHScUPMtgpqIEVmdzzNi_

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-bundle-4832a0b2
```

Example prompt: Give me the full Brazilian market snapshot right now — official USD/BRL PTAX rate, crypto premium, Selic, IPCA, and the latest headlines with sentiment, all in one shot.

## When to prefer this

Choose this endpoint when you need multiple Brazilian market signals simultaneously — FX, crypto, macro indicators, and news sentiment — and want to minimize latency and cost (33% cheaper than calling each endpoint individually). Ideal for dashboards, monitoring pipelines, or any workflow that needs a holistic Brazil market view in a single round-trip.

## Known failure modes

- HTTP 503 returned (with no charge) when fewer than half of underlying data sources respond
- Stale data up to 15 minutes old if refresh cycle not yet completed
- Empty or partial keyed fields if a specific sub-source is temporarily unavailable
- Payment failure via x402 if USDC balance is insufficient

## How this service works

The whole Brazilian market snapshot in ONE call, a third cheaper than one by one: official USD/BRL rate with the live crypto premium, macro indicators (Selic, IPCA, activity) and the latest headlines with sentiment, refreshed every 15 minutes. Same JSON as the single endpoints, keyed by name; 503 and no charge if fewer than half respond. Free sample, no payment: https://api.brazilayer.com/v1/mercado/amostra

## Output

A JSON object keyed by indicator name containing: the official Central Bank PTAX USD/BRL rate, live BTC/BRL and USDT/BRL crypto premium, Selic policy rate, IPCA inflation figure, economic activity reading, and recent news headlines with sentiment scores. Data is refreshed every 15 minutes. Returns HTTP 503 with no charge if fewer than half of the underlying data sources respond.

## 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-bundle-4832a0b2/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)
