U.S. Department of the Treasury Exchange Rate API
Official U.S. Department of the Treasury (United States) quarterly exchange rates as JSON: 187 currencies, history back to 2001. The published USD rates required for tax, audits, and compliant invoicing.
About U.S. Department of the Treasury
The U.S. Department of the Treasury publishes the Treasury Reporting Rates of Exchange each quarter, through its Bureau of the Fiscal Service. Every US government agency must use these rates to convert foreign-currency balances into dollars for official reports — and contractors, grant recipients, and auditors follow the same table. Rates are amended mid-quarter when a currency moves sharply.
- Official website: www.treasury.gov
- Official rate publication: Treasury Reporting Rates of Exchange
Quick start
One request for the pair you need — USD to EUR at the official U.S. Department of the Treasury rate:
curl "https://allratestoday.com/api/v1/central-bank/ustreasury/latest?source=USD&target=EUR" \
-H "Authorization: Bearer art_live_your_key" Or the bank's full published table:
curl "https://allratestoday.com/api/v1/central-bank/ustreasury/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/ustreasury/history?source=USD&target=EUR&from=2025-01-01" \
-H "Authorization: Bearer art_live_your_key" Latest published rates (2026-07-15)
The most recent table as published by U.S. Department of the Treasury — exactly what the /latest endpoint returns right now. Values are USD per 1 unit of each currency:
| Base | Quote | Type | Rate |
|---|---|---|---|
USD | VEF | quarterly | 248832 |
USD | AFN | quarterly | 65.09 |
USD | ALL | quarterly | 82.4 |
USD | DZD | quarterly | 132.906 |
USD | AOA | quarterly | 912.048 |
USD | XCD | quarterly | 2.7 |
USD | ARS | quarterly | 1495 |
USD | AMD | quarterly | 370 |
USD | AUD | quarterly | 1.451 |
USD | AZN | quarterly | 1.7 |
USD | BSD | quarterly | 1 |
USD | BHD | quarterly | 0.377 |
USD | BDT | quarterly | 123 |
USD | BBD | quarterly | 2.02 |
USD | BYN | quarterly | 2.907 |
USD | BZD | quarterly | 2 |
USD | XOF | quarterly | 571.5 |
USD | BMD | quarterly | 1 |
USD | BAM | quarterly | 1.716 |
USD | BWP | quarterly | 12.821 |
USD | BRL | quarterly | 5.174 |
USD | BND | quarterly | 1.295 |
USD | BGN | quarterly | 0.87 |
USD | KHR | quarterly | 4020.5 |
USD | XAF | quarterly | 575.55 |
USD | CAD | quarterly | 1.424 |
USD | CVE | quarterly | 96.77 |
USD | KYD | quarterly | 0.82 |
USD | CLP | quarterly | 921.6 |
USD | CNY | quarterly | 6.785 |
USD | COP | quarterly | 3449.19 |
USD | KMF | quarterly | 431.3 |
USD | CRC | quarterly | 451.95 |
USD | CUC | quarterly | 1 |
USD | CUP | quarterly | 24 |
USD | XCG | quarterly | 1.78 |
USD | EUR | quarterly | 0.877 |
USD | CZK | quarterly | 20.716 |
USD | CDF | quarterly | 2277 |
USD | DKK | quarterly | 6.558 |
USD | DJF | quarterly | 177 |
USD | DOP | quarterly | 59.36 |
USD | EGP | quarterly | 49.18 |
USD | ERN | quarterly | 15 |
USD | SZL | quarterly | 16.368 |
USD | ETB | quarterly | 158.48 |
USD | FJD | quarterly | 2.22 |
USD | GMD | quarterly | 72 |
USD | GEL | quarterly | 2.607 |
USD | GHS | quarterly | 11.3 |
USD | GTQ | quarterly | 7.62 |
USD | GNF | quarterly | 8733 |
USD | GYD | quarterly | 215 |
USD | HTG | quarterly | 130.252 |
USD | HNL | quarterly | 26.668 |
USD | HKD | quarterly | 7.842 |
USD | HUF | quarterly | 312.34 |
USD | ISK | quarterly | 126.22 |
USD | INR | quarterly | 94.66 |
USD | IDR | quarterly | 17870.69 |
USD | IRR | quarterly | 1375055 |
USD | IQD | quarterly | 1309.55 |
USD | ILS | quarterly | 2.977 |
USD | JMD | quarterly | 159 |
USD | JPY | quarterly | 162.38 |
USD | JOD | quarterly | 0.708 |
USD | KZT | quarterly | 478.11 |
USD | KES | quarterly | 129.35 |
USD | KRW | quarterly | 1550.88 |
USD | KWD | quarterly | 0.308 |
USD | KGS | quarterly | 87.45 |
USD | LAK | quarterly | 22320 |
USD | LBP | quarterly | 89500 |
USD | LSL | quarterly | 16.368 |
USD | LRD | quarterly | 181 |
USD | LYD | quarterly | 6.413 |
USD | MGA | quarterly | 4180 |
USD | MWK | quarterly | 1751 |
USD | MYR | quarterly | 4.082 |
USD | MVR | quarterly | 15.42 |
USD | MRU | quarterly | 39.9 |
USD | MUR | quarterly | 47.04 |
USD | MXN | quarterly | 17.454 |
USD | MDL | quarterly | 17.51 |
USD | MNT | quarterly | 3579 |
USD | MAD | quarterly | 9.375 |
USD | MZN | quarterly | 63.3 |
USD | MMK | quarterly | 3668 |
USD | NAD | quarterly | 16.368 |
USD | NPR | quarterly | 151.46 |
USD | NZD | quarterly | 1.767 |
USD | NIO | quarterly | 36.6 |
USD | NGN | quarterly | 1380.08 |
USD | NOK | quarterly | 9.916 |
USD | OMR | quarterly | 0.385 |
USD | PKR | quarterly | 277.7 |
USD | PGK | quarterly | 4.228 |
USD | PYG | quarterly | 6069.32 |
USD | PEN | quarterly | 3.414 |
USD | PHP | quarterly | 61.322 |
USD | PLN | quarterly | 3.768 |
USD | QAR | quarterly | 3.64 |
USD | MKD | quarterly | 53.86 |
USD | RON | quarterly | 4.6 |
USD | RUB | quarterly | 78.5 |
USD | RWF | quarterly | 1450 |
USD | STN | quarterly | 21.501 |
USD | SAR | quarterly | 3.75 |
USD | RSD | quarterly | 102.89 |
USD | SCR | quarterly | 13.756 |
USD | SLE | quarterly | 24.6 |
USD | SGD | quarterly | 1.295 |
USD | SBD | quarterly | 7.8 |
USD | SOS | quarterly | 568 |
USD | ZAR | quarterly | 16.368 |
USD | SSP | quarterly | 4800 |
USD | LKR | quarterly | 336 |
USD | SDG | quarterly | 3550 |
USD | SRD | quarterly | 37.325 |
USD | SEK | quarterly | 9.725 |
USD | CHF | quarterly | 0.809 |
USD | SYP | quarterly | 112.5 |
USD | TWD | quarterly | 31.834 |
USD | TJS | quarterly | 9.22 |
USD | TZS | quarterly | 2610 |
USD | THB | quarterly | 33.2 |
USD | TOP | quarterly | 2.327 |
USD | TTD | quarterly | 6.749 |
USD | TND | quarterly | 2.934 |
USD | TRY | quarterly | 46.656 |
USD | TMT | quarterly | 3.491 |
USD | UGX | quarterly | 3660 |
USD | UAH | quarterly | 44.735 |
USD | AED | quarterly | 3.673 |
USD | GBP | quarterly | 0.756 |
USD | UYU | quarterly | 40.12 |
USD | UZS | quarterly | 12000 |
USD | VUV | quarterly | 118.3 |
USD | VND | quarterly | 26255 |
USD | WST | quarterly | 2.672 |
USD | YER | quarterly | 528 |
USD | ZMW | quarterly | 18 |
USD | ZWG | quarterly | 25.833 |
USD | BOB | quarterly | 10.35 |
USD | BIF | quarterly | 3443 |
USD | VES | quarterly | 723.933 |
Node.js / TypeScript client
A dedicated zero-dependency npm package wraps these endpoints — ustreasury-exchange-rate:
npm install ustreasury-exchange-rate import { getRate } from 'ustreasury-exchange-rate';
const pair = await getRate('USD', 'EUR', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date); Zero dependencies, TypeScript types included, and it runs anywhere fetch exists — Node 18+, Bun, Deno, and edge runtimes.
Why use the official U.S. Department of the Treasury rate?
Live market rates move continuously, but tax filings, customs declarations, audits, and statutory accounting in United States and beyond typically require the official rate published by U.S. Department of the Treasury 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 USD) and explicitly flagged "derived": true — so what the bank printed and what was computed are never confused.
Endpoints
GET /api/v1/central-bank/ustreasury/latest— latest table or single pair (all plans)GET /api/v1/central-bank/ustreasury/{YYYY-MM-DD}— the table for any date (paid plans)GET /api/v1/central-bank/ustreasury/history— time series, up to 5,000 rows (paid plans)GET /api/v1/central-bank/ustreasury/availability— publication calendar: the dates the bank actually published (all plans)
Full parameter reference in the API documentation. Every request counts toward your plan's monthly quota — rates change once a quarter, so caching a published table locally makes a small quota go far.
Frequently asked questions
Is there an API for U.S. Department of the Treasury exchange rates?
Yes — this one. Official quarterly USD rates as clean JSON, latest table on every plan including free.
How often are the rates updated?
U.S. Department of the Treasury publishes quarterly — one official table per quarter, amended mid-quarter when a currency moves sharply; the API ingests each new table shortly after publication (latest: 2026-07-15).
Are these the official rates?
Yes — ingested from U.S. Department of the Treasury's own published data, served unmodified with the bank's publication date. Anything computed rather than published is flagged derived.
U.S. Department of the Treasury rates, one API key
Latest table on every plan. History back to 2001 on paid plans. No credit card to start.
Get Free API Key Read the Docs