Reviewed by Madhushan, Fintech Developer — August 2026
The State Bank of Pakistan publishes the official exchange rates that accounting, tax, and customs rules in Pakistan 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 sbp-exchange-rate npm package.
USD → PKR — official State Bank of Pakistan mark-to-market rate
Weekly observations, Aug '25 – Aug '26 · Pakistani rupees per 1 US dollar
Source: State Bank of Pakistan published rates · chart data from the AllRatesToday API (/api/v1/central-bank/sbp/history?source=USD&target=PKR).
What the SBP publishes
35 currencies against the rupee — the Mark-to-Market Revaluation Exchange Rates SBP publishes for authorized dealers, from the majors to the AED, SAR and CNH corridors Pakistani trade actually runs on.
History back to 2017 — every published business day, through the 2018-19 devaluations and the 2023 cap removal, queryable by exact date or as a time series.
The bank's own publication date on every response, so a rate is always citable.
No gaps to trip over — weekends and Pakistani public holidays resolve to the most recent published table and are flagged explicitly.
This is the rate SBP requires authorized dealers to revalue their foreign currency positions at, compiled from the closing interbank market — not an indicative quote. That is what makes it the number Pakistani accounts, audits and customs valuations are converted at, and why it is worth pulling from the source rather than a market feed.
Why official rates, not market rates
A live mid-market feed answers "what is USD/PKR 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 State Bank of Pakistan's published rates, and it never changes after publication.
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 sbp-exchange-rate
import { getRate, getLatestRates } from 'sbp-exchange-rate';
// One pair at the official SBP rate
const pair = await getRate('USD', 'PKR', { 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 'sbp-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: 'PKR', 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 SBP does not print a pair directly, the API resolves it from the bank's published rates — an inverse, or a cross rate via PKR — 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.
Through two currency regimes
Our archive runs from January 2017, when the rupee still sat near 104 to the dollar. It covers the 2018-19 devaluations that took it past 138, the pandemic slide to 166, and the removal of the exchange-rate cap in January 2023, when the official rate moved from roughly 230 to 262 in two days. When an audit asks what the official rate was on an invoice date, the answer is one API call away.
FAQ
Does the State Bank of Pakistan have an official exchange rate API?
The SBP publishes its official rates on its own site, and AllRatesToday serves the same published rates as clean JSON via REST or the sbp-exchange-rate npm package. The latest table is free.
How often do State Bank of Pakistan rates update?
Once per business day, published in the evening Pakistan time after the interbank close. SBP issues the table as a daily bulletin; we parse it and serve it with its own publication date, so you can cite it.
Can I get the SBP rate for a past date, like an invoice date?
Yes. The /central-bank/sbp/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, so your audit trail stays honest. Historical dates require a paid plan; latest rates are free.
Official State Bank of Pakistan rates, as JSON
The latest rates are free — 300 requests/month, no credit card.
We use cookies to remember your currency preferences and improve your experience on AllRatesToday. By clicking "Accept", you consent to our use of cookies.