Central Bank of Uzbekistan Exchange Rates API — cbu-exchange-rate
Official Central Bank of Uzbekistan (Uzbekistan) daily exchange rates for Node.js and TypeScript. The published central bank rates behind tax filings, customs valuations, audits, and compliant invoicing — not market estimates, but the numbers Central Bank of Uzbekistan itself prints, every business day.
🚀 Why this client?
- 🏛️ Official published rates — Central Bank of Uzbekistan's own table, with the publisher's own
rate_date on every response
- 📅 History back to 2016 — point-in-time tables and daily series for any past date
- 🔀 Published vs derived, always flagged — computed inverse/cross pairs carry
derived: true, never mixed with official prints
- ⚡ Zero dependencies — pure ESM + CJS over global
fetch; Node 18+, Bun, Deno, and edge runtimes
- 🔷 Type-safe — full TypeScript definitions shipped with the package
- 🧾 Compliance-grade metadata —
rate_type, publication date, and source disclaimer on every response
Official rate, not mid-market: every value here is a number Central Bank of Uzbekistan itself published, fixed once printed and carrying the central bank's own rate_date — what filings and audits require. Need the live mid-market rate for pricing or display instead? Use the mid-market API or @allratestoday/sdk. The two can diverge by several percent.
🔑 Get your API key
Get a free API key at allratestoday.com/register — no credit card required. Latest rates are on every plan, including free.
📈 Latest published table
The image is rendered live from the keyless endpoint, so it follows the central bank's publications on npm and on GitHub alike without a new release. The same table as text is folded below for search and copy-paste: on GitHub a daily Action refreshes it whenever the central bank publishes a new table; on npm it is as of the package's publish date.
| Base | Quote | Type | Rate |
|---|
| AED | UZS | reference | 3273.83 |
| AFN | UZS | reference | 184.98 |
| AMD | UZS | reference | 33.37 |
| ARS | UZS | reference | 7.82 |
| AUD | UZS | reference | 8450.09 |
| AZN | UZS | reference | 7072.62 |
| BDT | UZS | reference | 96.85 |
| BHD | UZS | reference | 31841.79 |
| BND | UZS | reference | 9411.71 |
| BRL | UZS | reference | 2234.14 |
| BYN | UZS | reference | 4081.56 |
| CAD | UZS | reference | 8612.18 |
| CHF | UZS | reference | 14653.82 |
| CNY | UZS | reference | 1807.33 |
| CUP | UZS | reference | 500.98 |
| CZK | UZS | reference | 553.13 |
| DKK | UZS | reference | 1801.13 |
| DZD | UZS | reference | 88.62 |
| EGP | UZS | reference | 214.7 |
| EUR | UZS | reference | 13461.47 |
| GBP | UZS | reference | 16146.3 |
| GEL | UZS | reference | 4629.75 |
Full table on the Central Bank of Uzbekistan rates page · Source: Official rates published by CBU, served by AllRatesToday. Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
📦 Installation
npm install cbu-exchange-rate
yarn add cbu-exchange-rate
pnpm add cbu-exchange-rate
Requires Node 18+ (global fetch); also runs on Bun, Deno and edge runtimes. Also published under the org scope as @allratestoday/cbu-exchange-rate — same code, same versions.
🏁 Quick start
import { getRate } from 'cbu-exchange-rate';
const pair = await getRate('USD', 'UZS', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date); // the official Central Bank of Uzbekistan rate, on the central bank's own date
📚 API reference
Latest pair rate
Free plan and up. Pairs the central bank does not print directly are resolved from its table and flagged (see Published vs derived rates below).
const pair = await getRate('USD', 'UZS', { apiKey: 'art_live_...' });
Response:
{
bank: 'cbu',
name: 'Central Bank of Uzbekistan',
rate_date: '2026-10-14', // Central Bank of Uzbekistan's own publication date
source: 'USD',
target: 'UZS',
rate: 11913.35,
rate_type: 'reference',
derived: false,
method: 'published',
disclaimer: 'Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned.'
}
Full published table
Free plan and up. The complete table for the latest publication date.
import { getLatestRates } from 'cbu-exchange-rate';
const table = await getLatestRates({ apiKey: 'art_live_...' });
console.log(table.rate_date, table.rates.length);
Response:
{
bank: 'cbu',
name: 'Central Bank of Uzbekistan',
rate_date: '2026-10-14',
rates: [
{ "base": "USD", "quote": "UZS", "type": "reference", "value": 11913.35 },
// … the rest of the published table (75 currencies vs UZS)
],
disclaimer: '…'
}
Table for a date
Paid plans. The official table for any date since 2016 — weekends and holidays return the most recent published date, flagged via published_on_requested_date, which is exactly the in-force rate a filing needs.
import { getRatesForDate } from 'cbu-exchange-rate';
const day = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...' });
// Optionally narrow to one pair:
const one = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...', source: 'USD', target: 'UZS' });
Response:
{
bank: 'cbu',
requested_date: '2026-06-30',
rate_date: '2026-06-30', // the date actually published
published_on_requested_date: true, // false when a weekend/holiday fell back
rates: [ /* the full table for that date */ ],
disclaimer: '…'
}
Daily time series
Paid plans. One resolved rate per publication date — ready for charting, revaluation runs, or audit workpapers.
import { getHistory } from 'cbu-exchange-rate';
const series = await getHistory(
{ source: 'USD', target: 'UZS', from: '2026-01-01', to: '2026-10-14' },
{ apiKey: 'art_live_...' }
);
Response:
{
bank: 'cbu',
source: 'USD',
target: 'UZS',
from: '2026-01-01',
to: '2026-10-14',
count: 152,
rates: [
// one entry per publication date
{ date: '2026-10-14', rate: 11913.35, rate_type: 'reference', derived: false, method: 'published' },
// …
],
disclaimer: '…'
}
Pass { symbol: 'USD' } instead of source/target to get the raw published rows for one currency (all rate types, no pair resolution).
🗺️ Currencies covered
Central Bank of Uzbekistan currently publishes rates covering 75 currencies against the UZS (as of the latest table):
🇦🇪 AED · 🇦🇫 AFN · 🇦🇲 AMD · 🇦🇷 ARS · 🇦🇺 AUD · 🇦🇿 AZN · 🇧🇩 BDT · 🇧🇬 BGN · 🇧🇭 BHD · 🇧🇳 BND · 🇧🇷 BRL · 🇧🇾 BYN · 🇨🇦 CAD · 🇨🇭 CHF · 🇨🇳 CNY · 🇨🇺 CUP · 🇨🇿 CZK · 🇩🇰 DKK · 🇩🇿 DZD · 🇪🇬 EGP · 🇪🇺 EUR · 🇬🇧 GBP · 🇬🇪 GEL · 🇭🇰 HKD · 🇭🇺 HUF · 🇮🇩 IDR · 🇮🇱 ILS · 🇮🇳 INR · 🇮🇶 IQD · 🇮🇷 IRR · 🇮🇸 ISK · 🇯🇴 JOD · 🇯🇵 JPY · 🇰🇬 KGS · 🇰🇭 KHR · 🇰🇷 KRW · 🇰🇼 KWD · 🇰🇿 KZT · 🇱🇦 LAK · 🇱🇧 LBP · 🇱🇾 LYD · 🇲🇦 MAD · 🇲🇩 MDL · 🇲🇲 MMK · 🇲🇳 MNT · 🇲🇽 MXN · 🇲🇾 MYR · 🇳🇴 NOK · 🇳🇿 NZD · 🇴🇲 OMR · 🇵🇭 PHP · 🇵🇰 PKR · 🇵🇱 PLN · 🇶🇦 QAR · 🇷🇴 RON · 🇷🇸 RSD · 🇷🇺 RUB · 🇸🇦 SAR · 🇸🇩 SDG · 🇸🇪 SEK · 🇸🇬 SGD · 🇸🇾 SYP · 🇹🇭 THB · 🇹🇯 TJS · 🇹🇲 TMT · 🇹🇳 TND · 🇹🇷 TRY · 🇺🇦 UAH · 🇺🇸 USD · 🇺🇾 UYU · 🇻🇪 VES · 🇻🇳 VND · XDR · 🇾🇪 YER · 🇿🇦 ZAR
🏛️ Source
The Central Bank of the Republic of Uzbekistan sets official som exchange rates for around 75 currencies, used for mandatory accounting and customs valuation in Uzbekistan. The bank publishes rates daily with a full open JSON archive.
- Publisher's own page: Exchange rate archive · cbu.uz
- Publication: every business day; the exact schedule, freshness status and any current delay are on the Central Bank of Uzbekistan rates page
- In the API: usually by 20:15 UTC (measured over the last 6 publications). Schedule a sync at or after that time and retry hourly until
rate_date moves; every response carries the same figure as available_by_utc — see when to poll
- Values are stored unmodified, with the publisher's own
rate_date on every row — see the methodology
🧭 Reading the numbers
value is always quote currency per 1 unit of base currency (base: "EUR", quote: "USD", value: 1.15 means 1 EUR = 1.15 USD).
- Central Bank of Uzbekistan quotes UZS per 1 unit of foreign currency (e.g.
base: "USD", quote: "UZS" means UZS per one US dollar).
- Need the other way round? Ask
getRate(target, source) and the API inverts or crosses for you, flagged derived: true — never divide a published rate yourself in a compliance workflow.
rate_type tells you which of the central bank's series a row belongs to (reference here); some publishers print buy/sell or several fixings for the same pair.
🧩 ERP & accounting systems
Loading the official Central Bank of Uzbekistan rate into an accounting system is a supported workflow, not a hack. Step-by-step guides with the direction each system expects:
The same keyed endpoints return ?format=csv, ?format=xml and ?format=xlsx, and accept the key as ?api_key= on the URL for importers that cannot send headers:
curl "https://allratestoday.com/api/v1/central-bank/cbu/latest?format=xml&api_key=art_live_..."
🤖 AI agents
- MCP server:
npx -y @allratestoday/central-bank-mcp (stdio) or the hosted endpoint https://allratestoday.com/api/mcp — tools for official rates, history, cross-bank comparison and publication calendars
- Already using the general SDK or MCP server? Since 2026-10-01
@allratestoday/sdk 1.4+ has officialRates('cbu') and @allratestoday/mcp-server 0.6+ has a get_official_rates tool — both return this source's latest table with no key, so you can add it without a second dependency
- Claude Code plugin (no key):
/plugin marketplace add AllRates-Today/claude-code-plugin then /plugin install allratestoday@allratestoday — bundles both MCP servers plus an /official-rate cbu ... command
- Evaluating? Agents can self-issue a trial key with no signup:
POST https://allratestoday.com/api/agent/keys (send Content-Type: application/json) returns a 100-call key valid 7 days that covers the free-plan methods (latest table, pairs); dated tables and history need a paid plan. The MCP servers expose it as request_trial_key
- Machine-readable site guide: llms.txt · for-ai-agents
⚖️ Published vs derived rates
If Central Bank of Uzbekistan does not print a pair directly, the API resolves it from the central bank's own table and says so — official and computed values are never confused:
method | derived | Meaning |
|---|
published | false | The central bank printed this pair directly |
inverse | true | Computed as 1 ÷ the published opposite direction |
cross | true | Computed via UZS from two published rates |
🛡️ Error handling
Errors are thrown as Error with status (HTTP code) and body (the API's JSON error) attached:
try {
const pair = await getRate('USD', 'XXX', { apiKey: 'art_live_...' });
} catch (err) {
console.log(err.message); // human-readable reason
console.log(err.status); // e.g. 404
}
| Status | Meaning |
|---|
| — | Missing apiKey (thrown before any request) |
400 | Malformed date or parameters |
401 | Invalid API key |
403 | Endpoint needs a paid plan (historical dates & series) |
404 | Pair or date range not covered by Central Bank of Uzbekistan |
429 | Monthly quota exceeded |
🔷 TypeScript
Full definitions ship with the package — no @types install:
import type { LatestRates, PairRate, DatedRates, RateEntry, HistoryQuery, RequestOptions } from 'cbu-exchange-rate';
📦 CommonJS
const { getRate } = require('cbu-exchange-rate');
getRate('USD', 'UZS', { apiKey: 'art_live_...' }).then((pair) => console.log(pair.rate));
💡 Quota tips
- Rates change once per business day — cache the published table locally and a small monthly quota goes a long way.
- Every request counts toward your AllRatesToday quota, shared across all AllRatesToday endpoints on your key.
📖 Methods reference
| Method | Plan | Description |
|---|
getRate(source, target, { apiKey }) | Free | Latest rate for one pair, resolved from the published table |
getLatestRates({ apiKey }) | Free | The central bank's full latest published table |
getRatesForDate(date, { apiKey, source?, target? }) | Paid | The official table (or one pair) for a YYYY-MM-DD date |
getHistory({ symbol | source+target, from?, to? }, { apiKey }) | Paid | Daily series since 2016 |
📥 Bulk data (no key)
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
🔗 Links
📜 License
MIT