/v1/exchange
PTAX USD/BRL and EUR/BRL
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
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_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}