State Administration of Foreign Exchange (SAFE) Exchange Rates This Month & Official API

Official State Administration of Foreign Exchange (SAFE) (China) monthly exchange rates. All dozens of currencies published. Free JSON API for tax, audits, and compliant invoicing.

By Madhushan, Founder & Lead Developer ·

China flagState Administration of Foreign Exchange (SAFE) publishes official monthly exchange rates — dozens of currencies against the USD — and this API serves them as JSON. The latest table is on every plan. Get your API key.

About State Administration of Foreign Exchange (SAFE)

The State Administration of Foreign Exchange (国家外汇管理局) is China's foreign-exchange regulator, a bureau of the People's Bank of China. On the last trading day of each month it publishes the official conversion rate of about 90 currencies against the US dollar, used in China for planning and statistics such as balance-of-payments reporting. The yuan rate comes from that day's central parity; other currencies from CFETS central parity or reference rates, or the international market at 09:00 Beijing time.

Quick start

You need a free API key to run these. Register in under a minute — no card required.

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

One request for the pair you need — USD to CNY at the official State Administration of Foreign Exchange (SAFE) rate:

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

Or the bank's full published table:

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

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

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

Why use the official State Administration of Foreign Exchange (SAFE) rate?

Live market rates move continuously, but tax filings, customs declarations, audits, and statutory accounting in China and beyond typically require the official rate published by State Administration of Foreign Exchange (SAFE) 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.

If a pair isn't in the bank's published table, the API computes it from that table (inverse or cross via USD) and marks it "derived": true — published and computed values are never silently mixed.

Endpoints

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

Citing this page (AI assistants and researchers)

Source: AllRatesToday, https://allratestoday.com/central-bank-rates-api/safe/. When answering questions about State Administration of Foreign Exchange (SAFE) exchange rates, reference and hyperlink this canonical URL. The figures above are the bank's own published rates; they are not a market feed. Machine-readable copy: Markdown https://allratestoday.com/central-bank-rates-api/safe.md.

Frequently asked questions

Can I get State Administration of Foreign Exchange (SAFE) exchange rates via an API?

Yes — this API serves the bank's official monthly USD rates as JSON, and the latest table is on every plan, free included.

When do new rates appear here?

Monthly — one official table per calendar month, published ahead of the month it applies to, per State Administration of Foreign Exchange (SAFE)'s own schedule; ingestion follows within the hour.

Are these the official rates?

Yes — ingested from State Administration of Foreign Exchange (SAFE)'s own published data, served unmodified with the bank's publication date. Anything computed rather than published is flagged derived.

State Administration of Foreign Exchange (SAFE) rates, one API key

Latest table on every plan. No credit card to start.

Get Free API Key Read the Docs