Banco Central de Cuba Exchange Rate API: Official CUP (Peso) Rates as JSON

Reviewed by Madhushan, Fintech Developer — September 2026

The Banco Central de Cuba publishes the official exchange rates that accounting, tax, and customs rules in Cuba reference — published official rates, not moving market prices. This guide shows how to pull them as JSON: via a REST endpoint or the zero-dependency banco-central-de-cuba-exchange-rate npm package.

USD → CUP — official Banco Central de Cuba Segment III special rate
Weekly observations, Dec '25 – Sep '26 · Cuban pesos per 1 US dollar
400500600700Dec '25Mar '26May '26Jul '26Sep '26681.02025-12-20: 408.0 CUP2025-12-27: 409.0 CUP2025-12-31: 411.0 CUP2026-01-10: 413.0 CUP2026-01-17: 419.0 CUP2026-01-24: 435.0 CUP2026-01-31: 441.0 CUP2026-02-07: 455.0 CUP2026-02-14: 458.0 CUP2026-02-21: 463.0 CUP2026-03-01: 466.0 CUP2026-03-08: 471.0 CUP2026-03-15: 475.0 CUP2026-03-22: 478.0 CUP2026-03-29: 480.0 CUP2026-04-05: 480.0 CUP2026-04-12: 485.0 CUP2026-04-19: 488.0 CUP2026-04-26: 494.0 CUP2026-05-03: 496.0 CUP2026-05-10: 498.0 CUP2026-05-17: 502.0 CUP2026-05-24: 507.0 CUP2026-05-31: 514.0 CUP2026-06-07: 533.0 CUP2026-06-14: 551.0 CUP2026-06-21: 565.0 CUP2026-06-28: 589.0 CUP2026-07-05: 585.0 CUP2026-07-12: 592.0 CUP2026-07-18: 592.0 CUP2026-07-26: 601.0 CUP2026-08-02: 615.0 CUP2026-08-09: 621.0 CUP2026-08-16: 628.0 CUP2026-08-23: 638.0 CUP2026-08-30: 634.0 CUP2026-09-06: 640.0 CUP2026-09-13: 655.0 CUP2026-09-20: 669.0 CUP2026-09-26: 681.0 CUP
Source: Banco Central de Cuba published rates · chart data from the AllRatesToday API (/api/v1/central-bank/bccu/history?source=USD&target=CUP).

What the BCC publishes

Cuba's peso has more than one official value, and which one applies depends on who is converting. That is exactly why the segment matters on every row: a state-enterprise invoice at 24, a population exchange at 120 and the new market-linked special rate at 681 are all "the official rate" in their own context. The API keeps them apart and dates each one.

Why official rates, not market rates

A live mid-market feed answers "what is USD/CUP 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 Banco Central de Cuba's published rates, and it never changes after publication.

Get the latest rates (REST)

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

The response is the bank's most recent published data — every rate and the publication date. The latest rates are available on every plan, including the free tier (300 requests/month, no credit card).

The npm SDK

npm install banco-central-de-cuba-exchange-rate
import { getRate, getLatestRates } from 'banco-central-de-cuba-exchange-rate';

// One pair at the official BCC rate
const pair = await getRate('USD', 'CUP', { 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

import { getRatesForDate, getHistory } from 'banco-central-de-cuba-exchange-rate';

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

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

Historical dates and time series need a paid plan; the latest rates stay free.

Published vs derived pairs

If the BCC does not print a pair directly, the API resolves it from the bank's published rates — an inverse, or a cross rate via CUP — 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.

The special rate since December 2025

Our archive starts on 19 December 2025, the day Banco Central de Cuba began publishing the Segment III special rate at 410 pesos per dollar. It has been set daily since, climbing through 500 and 600 to 681 on 26 September 2026, while the Segment I and II rates stayed at 24 and 120. For a past invoice date, one call returns all three segments in force that day; days without a new table resolve to the table then valid and are flagged.

FAQ

Does the Banco Central de Cuba have an official exchange rate API?

The BCC publishes its official rates on its own site, and AllRatesToday serves the same published rates as clean JSON via REST or the banco-central-de-cuba-exchange-rate npm package. The latest rates are free (300 requests/month); historical dates need a paid plan.

How often do Banco Central de Cuba rates update?

Once per business day, as a table of 13 currencies with three rates each — official (Segment I), public (Segment II) and special (Segment III). The bank posts the next day's table the afternoon before and gives it a validity window that covers weekends; every API response carries the table's own date.

Can I get the BCC rate for a past date, like an invoice date?

Yes. The /central-bank/bccu/rates-for-date endpoint returns the official rates for any archived date. Non-publication days resolve to the most recent published date and are flagged via published_on_requested_date.

Official Banco Central de Cuba rates, as JSON

The latest rates are free — 300 requests/month, no credit card.

Get your free API key

Related Articles