# Brasil Dados API - USD/BRL & EUR/BRL Exchange Rates (PTAX)

> Brasil Dados API - USD/BRL & EUR/BRL Exchange Rates (PTAX) is a paid API for AI agents from brasil-dados-api.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns official USD/BRL and EUR/BRL exchange rates from Brazil's Central Bank PTAX reference rate.

## Facts

- Endpoint: GET https://brasil-dados-api.onrender.com/cambio
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brasil-dados-api-usd-brl-eur-brl-exchange-rates-ptax-1348f06e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2_SO-IqssfF-cJsDz-zn9

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 brasil-dados-api-usd-brl-eur-brl-exchange-rates-ptax-1348f06e
```

Example prompt: What are the current official USD/BRL and EUR/BRL exchange rates from Brazil's Central Bank?

## When to prefer this

Use this endpoint when you need official, authoritative USD/BRL or EUR/BRL exchange rates recognized for Brazilian financial contracts, legal agreements, or regulatory purposes. Prefer this over commercial FX APIs when PTAX specifically (the Central Bank of Brazil reference rate) is required, such as for contract settlements or official reporting.

## Known failure modes

- Central Bank API unavailable or rate data not yet published for the day — service may return stale or empty data
- Network timeout if Render.com free-tier instance is cold-starting
- Rate limiting if too many requests are made in a short period
- No query parameters supported; any unexpected input schema may cause 400 errors

## How this service works

Official USD/BRL and EUR/BRL exchange rates (PTAX, Central Bank of Brazil).

## Output

Returns the official PTAX USD/BRL and EUR/BRL exchange rates as published by Brazil's Central Bank, typically including the buy and sell rates for both currency pairs.

## 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/brasil-dados-api-usd-brl-eur-brl-exchange-rates-ptax-1348f06e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from brasil-dados-api.onrender.com](https://www.zero.xyz/host/brasil-dados-api.onrender.com/llms.txt)
