Home Documentation Central Bank Rates Tax Authority Rates Playground Pricing API Status Blog About FAQ Contact Us

Banco Central do Brasil PTAX API: Official BRL Rates as JSON

Reviewed by Madhushan, Fintech Developer — August 2026

Banco Central do Brasil publishes an official table of exchange rates once per business day — the PTAX rate — covering 155 currencies against the BRL. These are the published central bank rates used for tax filings, customs valuations, audits, and compliant invoicing in Brazil — not moving market prices. This guide shows how to pull them as JSON: via a REST endpoint or the zero-dependency bcb-exchange-rate npm package, with history back to 2016.

USD → BRL — official Banco Central do Brasil PTAX closing midpoint
Weekly observations, Aug '25 – Aug '26 · Brazilian reals per 1 US dollar
55.2005.4005.600Aug '25Nov '25Jan '26May '26Aug '265.1052025-08-01: 5.543 BRL2025-08-08: 5.425 BRL2025-08-15: 5.393 BRL2025-08-22: 5.439 BRL2025-08-29: 5.426 BRL2025-09-05: 5.396 BRL2025-09-12: 5.367 BRL2025-09-19: 5.327 BRL2025-09-26: 5.344 BRL2025-10-03: 5.349 BRL2025-10-10: 5.444 BRL2025-10-17: 5.439 BRL2025-10-24: 5.379 BRL2025-10-31: 5.384 BRL2025-11-07: 5.356 BRL2025-11-14: 5.295 BRL2025-11-21: 5.390 BRL2025-11-28: 5.333 BRL2025-12-05: 5.340 BRL2025-12-12: 5.401 BRL2025-12-19: 5.516 BRL2025-12-26: 5.541 BRL2025-12-31: 5.502 BRL2026-01-02: 5.437 BRL2026-01-09: 5.370 BRL2026-01-16: 5.380 BRL2026-01-23: 5.288 BRL2026-01-30: 5.230 BRL2026-02-06: 5.234 BRL2026-02-13: 5.229 BRL2026-02-20: 5.200 BRL2026-02-27: 5.149 BRL2026-03-06: 5.287 BRL2026-03-13: 5.254 BRL2026-03-20: 5.280 BRL2026-03-27: 5.237 BRL2026-04-02: 5.165 BRL2026-04-10: 5.023 BRL2026-04-17: 4.969 BRL2026-04-24: 5.008 BRL2026-04-30: 4.988 BRL2026-05-08: 4.900 BRL2026-05-15: 5.065 BRL2026-05-22: 5.014 BRL2026-05-29: 5.057 BRL2026-06-05: 5.124 BRL2026-06-12: 5.082 BRL2026-06-19: 5.144 BRL2026-06-26: 5.169 BRL2026-07-03: 5.171 BRL2026-07-10: 5.109 BRL2026-07-17: 5.117 BRL2026-07-24: 5.066 BRL2026-07-31: 5.077 BRL2026-08-04: 5.105 BRL
Source: Banco Central do Brasil published rates · chart data from the AllRatesToday API (/api/v1/central-bank/bcb/history?source=USD&target=BRL).

What the BCB publishes

Why official rates, not market rates

A live mid-market feed answers "what is USD/BRL trading at right now?" — the right tool for checkouts and dashboards. But accountants, auditors, and tax authorities ask a different question: "which rate were you required to use for this date?" That answer comes from the central bank's published table, and it never changes after publication.

PTAX is contractually load-bearing in Brazil: FX derivatives, loan agreements, and regulatory filings routinely settle against it.

Get the latest table (REST)

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

The response is the bank's most recent published table — every currency, the BRL value, and the publication date:

{
  "bank": "bcb",
  "rate_date": "2026-08-01",
  "base": "BRL",
  "rates": [ { "currency": "USD", "rate": 1.2345, "official": true }, ... ]
}

The latest table is available on every plan, including the free tier (300 requests/month, no credit card). Since the table changes once per business day, caching it locally makes even a small quota go a long way.

The npm SDK

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

// One pair at the official Banco Central do Brasil rate
const pair = await getRate('USD', 'BRL', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date);

// The bank's full published table
const table = await getLatestRates({ apiKey: 'art_live_...' });
console.log(table.rate_date, table.rates.length);

Zero dependencies, TypeScript types included, and it runs anywhere fetch exists — Node 18+, Bun, Deno, and edge runtimes.

Historical rates for an invoice date

The most common compliance job: an invoice dated months ago needs the official rate for that date.

import { getRatesForDate, getHistory } from 'bcb-exchange-rate';

// The official table for an invoice date — weekends/holidays return
// the most recent published date, flagged via published_on_requested_date.
const day = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...' });

// Daily series for one pair
const series = await getHistory(
  { source: 'USD', target: 'BRL', from: '2026-01-01' },
  { apiKey: 'art_live_...' }
);

Historical dates and time series need a paid plan; the latest table stays free.

Published vs derived pairs

If the BCB does not print a pair directly, the API resolves it from the bank's table — an inverse, or a cross rate via BRL — and flags it derived: true with the method used. Official and computed values are never silently mixed, which is exactly the distinction an auditor will ask about.

FAQ

Does Banco Central do Brasil have an official exchange rate API?

Banco Central do Brasil publishes its official rates on its website, but not always in a developer-friendly form. AllRatesToday serves the bank's published table as clean JSON — 155 currencies against the BRL, with history back to 2016 — via REST or the bcb-exchange-rate npm package. The latest table is free.

How often do Banco Central do Brasil rates update?

Once per business day. These are published reference rates, not moving market prices — the table changes when the BCB publishes a new one, and every API response carries the bank's own publication date so you can cite it.

Can I get the Banco Central do Brasil rate for a past date, like an invoice date?

Yes. The /central-bank/bcb/rates-for-date endpoint returns the official table for any date back to 2016. Weekends and holidays resolve to the most recent published table and are flagged, so your audit trail stays honest. Historical dates require a paid plan; latest rates are free.

Official Banco Central do Brasil rates, as JSON

The latest table is free — 300 requests/month, no credit card.

Get your free API key

Related Articles