Home Documentation Bank Rates Playground Pricing API Status Blog About FAQ Support

Banco Central do Brasil (PTAX) Exchange Rate API

Official Banco Central do Brasil (PTAX) (Brazil) daily exchange rates as JSON: 10 currencies, history back to 2016. The published BRL rates required for tax, audits, and compliant invoicing.

Brazil flagBanco Central do Brasil (PTAX) official daily exchange rates as JSON: 10 currencies against the BRL, history back to 2016. Latest table on every plan. Get your API key.

Quick start

One request for the pair you need — USD to BRL at the official Banco Central do Brasil (PTAX) rate:

curl "https://allratestoday.com/api/v1/central-bank/bcb/latest?source=USD&target=BRL" \
  -H "Authorization: Bearer art_live_your_key"

Or the bank's full published table:

curl "https://allratestoday.com/api/v1/central-bank/bcb/latest" \
  -H "Authorization: Bearer art_live_your_key"

On paid plans, any historical date or a daily time series:

curl "https://allratestoday.com/api/v1/central-bank/bcb/history?source=USD&target=BRL&from=2025-01-01" \
  -H "Authorization: Bearer art_live_your_key"

Latest published rates (2026-07-31)

The most recent table as published by Banco Central do Brasil (PTAX) — exactly what the /latest endpoint returns right now. Values are BRL per 1 unit of each currency:

BaseQuoteTypeRate
AUD BRL buy 3.5659
AUD BRL sell 3.5673
CAD BRL buy 3.6185
CAD BRL sell 3.6199
CHF BRL buy 6.2807
CHF BRL sell 6.2838
DKK BRL buy 0.7822
DKK BRL sell 0.7824
EUR BRL buy 5.8473
EUR BRL sell 5.849
GBP BRL buy 6.8363
GBP BRL sell 6.8391
JPY BRL buy 0.03189
JPY BRL sell 0.0319
NOK BRL buy 0.5345
NOK BRL sell 0.5357
SEK BRL buy 0.5328
SEK BRL sell 0.5329
USD BRL buy 5.0767
USD BRL sell 5.0773

Node.js / TypeScript client

A dedicated zero-dependency npm package wraps these endpoints — bcb-exchange-rate:

npm install bcb-exchange-rate
import { getRate } from 'bcb-exchange-rate';

const pair = await getRate('USD', 'BRL', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date);

Why use the official Banco Central do Brasil (PTAX) rate?

Live market rates move continuously, but tax filings, customs declarations, audits, and statutory accounting in Brazil and beyond typically require the official rate published by Banco Central do Brasil (PTAX) for a given date — a fixed, citable number that never changes after publication. This API serves those published tables with the bank's own rate_date on every response; weekends and holidays return the most recent published date, which is the rate compliance rules require you to apply.

Pairs the bank doesn't print directly are resolved from its table (inverse or cross via BRL) and explicitly flagged "derived": true — so what the bank printed and what was computed are never confused.

Endpoints

Full parameter reference in the API documentation. Every request counts toward your plan's monthly quota — rates change once per business day, so caching a day's table locally makes a small quota go far.

Frequently asked questions

Is there an API for Banco Central do Brasil (PTAX) exchange rates?

Yes — this one. Official daily BRL rates as clean JSON, latest table on every plan including free.

How often are the rates updated?

Banco Central do Brasil (PTAX) publishes once per business day; the API ingests each new table shortly after publication (latest: 2026-07-31).

Are these the official rates?

Yes — ingested from Banco Central do Brasil (PTAX)'s own published data, served unmodified with the bank's publication date. Anything computed rather than published is flagged derived.

Banco Central do Brasil (PTAX) rates, one API key

Latest table on every plan. History back to 2016 on paid plans. No credit card to start.

Get Free API Key Read the Docs