Skip to content
GET /v1/exchange

PTAX USD/BRL and EUR/BRL

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/bcb-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/bcb-api/v1/exchange" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bcb-api/v1/exchange", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bcb-api/v1/exchange");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/bcb-api/v1/exchange",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "base": "BRL",
        "source": "Banco Central do Brasil (PTAX)",
        "eur_brl": {
            "date": "2026-06-08",
            "rate": 5.9682
        },
        "usd_brl": {
            "date": "2026-06-08",
            "rate": 5.1695
        },
        "usd_brl_history": [
            {
                "date": "2026-05-25",
                "rate": 5.0072
            },
            {
                "date": "2026-05-26",
                "rate": 5.0211
            },
            {
                "date": "2026-05-27",
                "rate": 5.0579
            },
            {
                "date": "2026-05-28",
                "rate": 5.0517
            },
            {
                "date": "2026-05-29",
                "rate": 5.0569
            },
            {
                "date": "2026-06-01",
                "rate": 5.0303
            },
            {
                "date": "2026-06-02",
                "rate": 5.016
            },
            {
                "date": "2026-06-03",
                "rate": 5.0415
            },
            {
                "date": "2026-06-05",
                "rate": 5.1244
            },
            {
                "date": "2026-06-08",
                "rate": 5.1695
            }
        ],
        "quote_convention": "1 USD / 1 EUR in BRL (PTAX sell)"
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:29.580Z",
        "request_id": "a074e72d-010a-400e-9cc5-657462d1697d"
    },
    "status": "ok",
    "message": "Exchange rates retrieved successfully",
    "success": true
}