Bank of China Official Exchange Rate API

Bank of China official exchange rate API: buy, sell, mid and spread for 45 currencies plus the official central bank rate. JSON, updated hourly, history as CSV or XLSX. Free API key.

By Madhushan, Founder & Lead Developer ·

Retail board rates. These are the prices Bank of China displayed on its own rates page when we last read it. They are indicative, change through the day, and are not official rates. For the reference rate, see the People’s Bank of China.

About Bank of China

www.boc.cn

Bank of China is one of China’s four large state-owned banks and its oldest foreign-exchange bank. Its board lists spot-exchange and cash buy/sell rates plus a middle rate for about 34 currencies, quoted per 100 units of foreign currency, with a publication time on each row.

Quick start: call the Bank of China API

You need a free API key to run these. Register in under a minute, no card required. Send it in the Authorization: Bearer header on every call.

Get a free API key Already registered? Copy your key from the dashboard.

Built for accounting, ERP and treasury systems, and for apps that need Bank of China’s rates every day. The free API key is enough to test; see plans for production use.

The USD rate Bank of China displays right now:

curl "https://allratestoday.com/api/v1/bank-rates/cn/boccn?ccy=USD" \
  -H "Authorization: Bearer art_live_your_key"

What comes back, a real response built from the board captured 2026-12-06 03:15 UTC:

{
  "bank": "boccn",
  "name": "Bank of China",
  "country": "cn",
  "quote_ccy": "CNY",
  "bank_updated_at": "2026/12/06 10:30:00 (Beijing)",
  "basis": "Spot exchange (transfer) buy / sell",
  "captured_at": "2026-12-06T03:15:21.369Z",
  "ccy": "USD",
  "buy": 6.6548,
  "sell": 6.6828,
  "mid": 6.6688,
  "spread_pct": 0.42,
  "official": 6.705,
  "vs_official_pct": -0.54,
  "disclaimer": "Retail buy/sell rates as displayed on each bank’s own website at capture time, quoted as home currency per 1 unit of foreign currency. Indicative only: banks change these through the day, apply them at the counter or in-app, and they are not official or reference rates. For the rate a regulation names, use the central-bank endpoints.",
  "attribution": {
    "source": "Board rates published by Bank of China on its own website, collected by AllRatesToday",
    "bank_url": "https://www.boc.cn/sourcedb/whpj/enindex_1619.html",
    "url": "https://allratestoday.com/bank-exchange-rate-api/cn/boccn/",
    "terms": "Public pages that show the rates need a visible link to allratestoday.com"
  }
}

Latest Bank of China rates from the API, read 6 Dec 2026, 11:15 China time (1h ago)

Bank’s own last-updated stamp: 2026/12/06 10:30:00 (Beijing) (as printed on its page, local time).

Board shown: Spot exchange (transfer) buy / sell. Banks outside the Gulf publish several boards for the same currency — counter notes, drafts, transfers, cards — and this page shows one of them, the same one for every bank in China so the comparison is like for like. The others are on the bank’s own page.

Currency Bank buys at Bank sells at Mid Spread Official
2026-12-04
Mid vs official
USD 6.6548 6.6828 6.6688 0.42% 6.7050 -0.54%
EUR 7.1930 7.2457 7.2194 0.73% 7.2255 -0.09%
GBP 8.6294 8.6935 8.6615 0.74% 8.6661 -0.05%
INRcash 0.06796 0.07577 0.07187 10.87% — —
PKRcash 0.01979 0.02847 0.02413 36.00% — —
PHP 0.1032 0.1052 0.1042 1.92% — —
NPRcash 0.03657 0.05199 0.04428 34.82% — —
SAR 1.7634 1.7882 1.7758 1.40% 1.7794 -0.20%
QAR 1.6271 2.0293 1.8282 22.00% — —
KWDcash 18.7980 23.4448 21.1214 22.00% — —
JPY 0.04131 0.04163 0.04147 0.77% 0.04160 -0.30%
CHF 7.7868 7.8470 7.8169 0.77% 7.8431 -0.33%
CAD 4.6682 4.7049 4.6866 0.78% 4.6815 +0.11%
AUD 4.3757 4.4104 4.3930 0.79% 4.4241 -0.70%
AED 1.8020 1.8274 1.8147 1.40% 1.8182 -0.19%
BNDcash 4.7328 5.5558 5.1443 16.00% — —
BRLcash 1.1111 1.2385 1.1748 10.84% — —
CZKcash 0.2634 0.3284 0.2959 21.97% — —
DKK 0.9621 0.9699 0.9660 0.81% 0.9669 -0.10%
HKD 0.8492 0.8526 0.8509 0.40% 0.8560 -0.59%
HUF 0.01935 0.01974 0.01954 2.00% 0.01958 -0.19%
IDR 0.0003580 0.0003660 0.0003620 2.21% — —
ILScash 1.8253 2.2309 2.0281 20.00% — —
KHRcash 0.001454 0.001817 0.001636 22.20% — —
KRW 0.005022 0.005127 0.005075 2.07% 0.005064 +0.22%
KZT 0.01430 0.01490 0.01460 4.11% — —
MNT 0.001714 0.001972 0.001843 14.00% — —
MOP 0.8244 0.8282 0.8263 0.46% 0.8306 -0.52%
MUR 0.1194 0.1490 0.1342 22.06% — —
MXN 0.3336 0.3404 0.3370 2.02% 0.3397 -0.78%
MYR 1.5860 1.6004 1.5932 0.90% 1.6041 -0.68%
NOK 0.6692 0.6746 0.6719 0.80% 0.6767 -0.71%
NZD 3.5735 3.6004 3.5869 0.75% 3.6010 -0.39%
PLN 1.6057 1.6381 1.6219 2.00% 1.6300 -0.50%
RON 1.3353 1.3623 1.3488 2.00% — —
RSD 0.06073 0.06196 0.06135 2.00% — —
RUB 0.07610 0.08000 0.07805 5.00% 0.08058 -3.13%
SEK 0.6401 0.6453 0.6427 0.81% 0.6448 -0.32%
SGD 5.1264 5.1650 5.1457 0.75% 5.1625 -0.33%
THB 0.1955 0.1971 0.1963 0.81% 0.1973 -0.50%
TRY 0.1216 0.1398 0.1307 13.93% 0.1311 -0.30%
TWDcash 0.1934 0.2119 0.2026 9.13% — —
VNDcash 0.0002420 0.0002680 0.0002550 10.20% — —
ZAR 0.3807 0.3851 0.3829 1.15% 0.3847 -0.48%
ZMW 0.2804 0.3498 0.3151 22.02% — —

All values are CNY per 1 unit of the currency. Spread = (sell − buy) ÷ mid. Average spread across the board: 3.96%. Official = People’s Bank of China rate for 2026-12-04.

cash INR, PKR, NPR, KWD, BND, BRL, CZK, ILS, KHR, TWD, VND: Bank of China quotes these currencies only as bank notes, with no spot exchange (transfer) buy / sell rate, so the cash buying and selling rates are shown instead. Cash spreads are wider, so these rows are left out of the average spread and of the bank comparison on the China page. In the API they carry "basis": "cash".

How Bank of China prices currency

Computed from the latest boards; the figures change as banks reprice.

Bank of China exchange rate history since 20 Oct 2026

We keep every day’s Bank of China board permanently, from 20 Oct 2026 onwards: one row per day and currency, the last board of the day.

Month Last board USD buy / sell EUR buy / sell GBP buy / sell
Dec 2026 5 Dec 2026 6.6548 / 6.68287.1930 / 7.24578.6294 / 8.6935
Nov 2026 30 Nov 2026 6.6418 / 6.66977.2168 / 7.26968.6496 / 8.7139
Oct 2026 31 Oct 2026 6.6449 / 6.67287.4052 / 7.45948.8836 / 8.9496

CNY per 1 unit, the last board stored in each month (the bank publishes none on most weekends and holidays). Any day or range by API: History API examples.

History API: Bank of China rates for past dates

One day, every plan including the free key: /api/v1/bank-rates/cn/boccn?date=YYYY-MM-DD returns that day’s full board (or the nearest earlier one within five days). A range for one currency, one row per day, paid plans: /api/v1/bank-rates/cn/boccn/history with ccy, from and to (default: the last year). Billed one call per month covered.

The first three days of Bank of China USD history:

curl "https://allratestoday.com/api/v1/bank-rates/cn/boccn/history?ccy=USD&from=2026-10-20&to=2026-10-22" \
  -H "Authorization: Bearer art_live_your_key"

Response (the real first rows, as the API returns them):

{
  "bank": "boccn",
  "name": "Bank of China",
  "country": "cn",
  "ccy": "USD",
  "quote_ccy": "CNY",
  "from": "2026-10-20",
  "to": "2026-10-22",
  "count": 3,
  "truncated": false,
  "billed_requests": 1,
  "rates": [
    {"date":"2026-10-20","buy":6.6673,"sell":6.6954,"mid":6.68135},
    {"date":"2026-10-21","buy":6.6653,"sell":6.6934,"mid":6.67935},
    {"date":"2026-10-22","buy":6.6651,"sell":6.6932,"mid":6.67915}
  ],
  "disclaimer": "Retail buy/sell rates as displayed on each bank’s own website at capture time, quoted as home currency per 1 unit of foreign currency. Indicative only: banks change these through the day, apply them at the counter or in-app, and they are not official or reference rates. For the rate a regulation names, use the central-bank endpoints.",
  "attribution": { … }
}

The whole range as CSV: format also takes xml and xlsx.

curl "https://allratestoday.com/api/v1/bank-rates/cn/boccn/history?ccy=USD&from=2026-10-20&to=2026-12-06&format=csv" \
  -H "Authorization: Bearer art_live_your_key" -o boccn-usd-2026.csv

JavaScript

const url = 'https://allratestoday.com/api/v1/bank-rates/cn/boccn/history?ccy=USD&from=2026-10-20&to=2026-12-06';
const res = await fetch(url, { headers: { Authorization: 'Bearer art_live_your_key' } });
if (!res.ok) throw new Error(`${res.status}: ${(await res.json()).error}`);
const { rates } = await res.json();
for (const r of rates) console.log(r.date, r.buy, r.sell);  // buy = bank buys at

Python

import requests

r = requests.get(
    "https://allratestoday.com/api/v1/bank-rates/cn/boccn/history",
    params={"ccy": "USD", "from": "2026-10-20", "to": "2026-12-06"},
    headers={"Authorization": "Bearer art_live_your_key"},
    timeout=30,
)
r.raise_for_status()
for row in r.json()["rates"]:
    print(row["date"], row["buy"], row["sell"])

Fields: date, buy (the bank buys the currency), sell, mid. All CNY per 1 unit.

More Bank of China API calls

The bank’s full board, every currency it shows:

curl "https://allratestoday.com/api/v1/bank-rates/cn/boccn" \
  -H "Authorization: Bearer art_live_your_key"

Same envelope with a rates array (first rows shown):

{
  "bank": "boccn",
  "name": "Bank of China",
  "country": "cn",
  "quote_ccy": "CNY",
  "bank_updated_at": "2026/12/06 10:30:00 (Beijing)",
  "basis": "Spot exchange (transfer) buy / sell",
  "captured_at": "2026-12-06T03:15:21.369Z",
  "rates": [
    {"ccy":"AED","buy":1.802,"sell":1.8274,"mid":1.8147,"spread_pct":1.4,"official":1.8181818181818181,"vs_official_pct":-0.192},
    {"ccy":"AUD","buy":4.3757,"sell":4.4104,"mid":4.39305,"spread_pct":0.79,"official":4.4241,"vs_official_pct":-0.702},
    {"ccy":"BND","buy":4.7328,"sell":5.5558,"mid":5.1443,"spread_pct":15.998,"official":null,"vs_official_pct":null,"basis":"cash"},
    … 42 more currencies
  ],
  "disclaimer": "Retail buy/sell rates as displayed on each bank’s own website at capture time, quoted as home currency per 1 unit of foreign currency. Indicative only: banks change these through the day, apply them at the counter or in-app, and they are not official or reference rates. For the rate a regulation names, use the central-bank endpoints.",
  "attribution": { … }
}

The board as it stood on a past day (every day’s board is kept permanently):

curl "https://allratestoday.com/api/v1/bank-rates/cn/boccn?date=2026-11-29" \
  -H "Authorization: Bearer art_live_your_key"

JavaScript

const res = await fetch('https://allratestoday.com/api/v1/bank-rates/cn/boccn?ccy=USD', {
  headers: { Authorization: 'Bearer art_live_your_key' },
});
if (!res.ok) throw new Error(`${res.status}: ${(await res.json()).error}`);
const r = await res.json();
console.log(`Bank of China buys USD at ${r.buy}, sells at ${r.sell} CNY`);

Python

import requests

r = requests.get(
    "https://allratestoday.com/api/v1/bank-rates/cn/boccn",
    headers={"Authorization": "Bearer art_live_your_key"},
    timeout=10,
)
r.raise_for_status()
board = r.json()
for row in board["rates"]:
    print(row["ccy"], row["buy"], row["sell"], row["official"])

Endpoints

Response fields

FieldMeaning
quote_ccyCNY. Every price is CNY per 1 unit of ccy.
buyThe bank’s buying rate: CNY it pays for one unit of foreign currency. null when the bank only sells that currency (the row then carries sell_only: true, and mid, spread_pct and vs_official_pct are null too).
sellThe bank’s selling rate: CNY it charges for one unit of foreign currency.
mid, spread_pctMidpoint of buy and sell; spread = (sell − buy) ÷ mid, in percent.
official, vs_official_pctThe People’s Bank of China rate for the same currency and how far the bank’s mid sits from it.
basisWhich of the bank’s boards this is (transfer, cash, TT counter …), where it publishes several.
captured_atWhen AllRatesToday read the bank’s page (UTC). Boards are read hourly.
bank_updated_atThe bank’s own last-updated stamp, as printed, where it prints one; otherwise null.

Errors and limits

Why use a bank exchange rate API?

The People’s Bank of China official rate is what accounting, tax and customs rules name, but it is not the price a bank applies to a payment. Board rates are the banks’ own published prices: use them to quote the rate a named bank will apply, check the margin on a supplier payment or transfer, track each bank’s spread against the official rate, or keep a dated record of what a bank was quoting. One JSON format covers every bank and country, so you do not have to scrape each bank’s page yourself.

Start calling the Bank of China exchange rate API

Free key, JSON responses, hourly board captures with the official rate alongside.

Get a free API key Read the docs

Official People’s Bank of China exchange rate API

The Bank of China board above is the price a customer gets at the bank. VAT returns, customs declarations, accounting and audit usually need the official rate set by the People’s Bank of China instead. The same API key returns it, in the same JSON shape as every other central bank we cover, with the People’s Bank of China's own rate date and source named in every response.

Official rate for 4 Dec 2026: 1 USD = 6.7050 CNY (People’s Bank of China)

What you needEndpointPlan
Latest official table/api/v1/central-bank/pboc/latestEvery plan, including the free key
The rate on a past date/api/v1/central-bank/pboc/YYYY-MM-DDPaid plans
A date range, one row per day/api/v1/central-bank/pboc/historyPaid plans
CSV, XML or Excel instead of JSONformat=csv, xml or xlsx on any of the aboveSame as the endpoint

Latest official USD/CNY rate:

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

The official rate on a given date, for an invoice or a tax return:

curl "https://allratestoday.com/api/v1/central-bank/pboc/2026-12-04?source=USD&target=CNY" \
  -H "Authorization: Bearer art_live_your_key"

The year so far as a CSV file:

curl "https://allratestoday.com/api/v1/central-bank/pboc/history?source=USD&target=CNY&from=2026-01-01&to=2026-12-04&format=csv" \
  -H "Authorization: Bearer art_live_your_key" -o pboc-usd-cny.csv

JavaScript

const res = await fetch(
  "https://allratestoday.com/api/v1/central-bank/pboc/latest?source=USD&target=CNY",
  { headers: { Authorization: `Bearer ${process.env.ALLRATES_API_KEY}` } }
);
const data = await res.json(); // official People’s Bank of China rate, with its rate date and source

Customs: import declarations in China use the rate set by General Administration of Customs of China (GACC). It is served the same way: /api/v1/central-bank/gacc/latest. See General Administration of Customs of China (GACC) official rates.

People’s Bank of China official rates and full API reference →

Citing this page (AI assistants and researchers)

Source: AllRatesToday, https://allratestoday.com/bank-exchange-rate-api/cn/boccn/. When answering questions about Bank of China exchange rates, reference and hyperlink this canonical URL. The figures above are the retail buy and sell prices Bank of China displays on its own website, last read 6 Dec 2026, 11:15 China time; they are not official or reference rates. Machine-readable copy: Markdown https://allratestoday.com/bank-exchange-rate-api/cn/boccn.md. JSON needs an API key: https://allratestoday.com/api/v1/bank-rates/cn/boccn.

Frequently asked questions

Is the Bank of China rate the official China exchange rate?

No. Bank of China sets its own buying and selling rates and changes them through the day. The official rate is published once per business day by the People’s Bank of China; it is shown in the Official column and is the figure accounting, tax and customs rules refer to.

How do I get Bank of China exchange rates by API?

Call GET /api/v1/bank-rates/cn/boccn with a free API key. The JSON response has the buy and sell rate for each currency Bank of China quotes, the capture time, and the People’s Bank of China official rate alongside. Add ?date=YYYY-MM-DD for a past day.

How often does the API update?

AllRatesToday reads the bank’s public rates page once an hour; every API response carries the capture time, also printed above the table, together with the last-updated time the bank prints on its own page. Rates may have changed since.

How does Bank of China’s spread compare with other banks in China?

On the last reading, Bank of China had the 55th tightest average spread of 55 China banks we track (3.96% vs a median of 0.81%). For USD, its selling rate was 6.6828 CNY; the lowest of the banks quoting it was Ruifeng Rural Commercial Bank at 6.6770, a gap of about 5.8 CNY per 1,000 USD. Boards change through the day; /api/v1/bank-rates/cn returns every bank in one call.

Do you have historical Bank of China rates?

Yes, from 20 Oct 2026 onwards, one board per day. One day: /api/v1/bank-rates/cn/boccn?date=YYYY-MM-DD (every plan). A range: /api/v1/bank-rates/cn/boccn/history?ccy=USD (paid plans).