Revision vintages

Official statistics get revised: GDP, the balance of payments, remittances, reserves and more. Add ?vintage=YYYY-MM-DD to /v1/series/{id} and every observation comes back as we had recorded it by the end of that date.

Plan: Pro and Business. Lower plans get 403.

curl -H "X-API-Key: pk_live_xxx" \
  "https://api.pakdatahub.com/v1/series/inflation.cpi.national?vintage=2026-08-31&limit=3"

The response has the normal series envelope. The values are the ones in effect on the vintage date.

How it works

Revision history from the SBP Statistical Bulletin (2008 →)

Every monthly issue of the State Bank's Monthly Statistical Bulletin opens with a table of headline indicators for the last 12–13 months, as published that month. We read every issue SBP still hosts, from 2005 to 2026 (258 issues), so for the series it covers you get each month's first print and every revision, dated by the issue that printed it: the point-in-time history that no longer exists on the SBP's live site, where a revision overwrites the original. We also read the bulletin's national-accounts tables (GDP by sector, at current and constant prices, marked provisional and revised), 2005–2023. Together that is about 8,800 first prints and 7,500 dated revisions on 70 series: 59 of ours matched by value, plus the 11 below that come straight from the bulletin. The 2005–2007 issues carried an older indicators table (call money rate, WPI, industrial output), so first prints of most of today's indicators start in 2008.

Covered series (and their twins under other dataset ids):

What Example id
USD/PKR, month average and month end fx.rate.avg.usd, fx.rate.monthend.usd
Workers' remittances remittances.total, external.workers_remittances
Exports and imports of goods (BOP) bop.goods_export_fob, bop.goods_import_fob
GDP by sector and in total, constant prices (bases 2005-06 and 2015-16); nominal GDP gdp.gross_domestic_product_total_gross_value_add_2, gdp.agricultural_sector_2, fiscal.gross_domestic_product_2
FX reserves: liquid, gold & FX, net with SBP reserves.total_liquid_fx_reserves, reserves.total_reserve_assets
CPI inflation YoY: national, urban, rural, food, non-food, core inflation.cpi.national.yoy, inflation.cpi.urban.yoy
Real and nominal effective exchange rates fx.effective.reer, fx.effective.neer
Banks' weighted-average lending and deposit rates (fresh and outstanding) banking.lending_marginal_overall, banking.deposit_stocks_overall
Net portfolio investment (BOP) bop.net_portfolio_investment
National Savings Schemes outstanding debt.saving_schemes_total_outstanding_amount
KSE-100 index, month end money.kse_100_index_last_working_day_month

Series that come from the bulletin itself

Some bulletin rows have no equivalent elsewhere in the catalog, so we serve them as series in their own right. Each value is the bulletin's latest print, and every earlier print is kept as a dated revision:

What Id From
Broad money (M2), month-end money.m2.monthly 2007
1-month KIBOR, month-end and monthly average rates.kibor.1m.month_end, rates.kibor.1m.month_avg 2007
Scheduled banks' advances-to-deposits and investment-to-deposits ratios, monthly banking.advances_to_deposits_ratio.monthly, banking.investment_to_deposits_ratio.monthly 2004
National CPI food, non-food and NFNE core inflation; 20% trimmed-mean core (historical) inflation.cpi.national.food.yoy, inflation.cpi.national.nonfood.yoy, inflation.core.nfne.national.yoy, inflation.core.trimmed_mean.national.yoy 2007–2019
National CPI levels on the old bases (historical) inflation.cpi.national.index_2000_01, inflation.cpi.national.index_2007_08 2004–2019

How we keep it honest:

# Remittances for Feb-Apr 2015 as published on 30 June 2015 (first prints)
curl -H "X-API-Key: pk_live_xxx" \
  "https://api.pakdatahub.com/v1/series/remittances.total?vintage=2015-06-30&from=2015-02-01&to=2015-04-30&sort=asc"

Large-scale manufacturing: PBS releases (November 2023 →)

PBS restates the last year or so of its Quantum Index of Large-Scale Manufacturing with each monthly release. For industry.lsm.qim, industry.lsm.qim.mom and industry.lsm.qim.yoy you get each month's first print and every restatement, dated by the release that published it, from the November 2023 release on; each new release is added as it comes out.

Releases up to May 2025 printed two decimals, later ones four: a figure printed again with more decimals is the same print, not a revision.

# LSM index for August 2023: 117.00 in the November 2023 release, restated to 114.36 by January 2025
curl -H "X-API-Key: pk_live_xxx"   "https://api.pakdatahub.com/v1/series/industry.lsm.qim/revisions?from=2023-08-01&to=2023-08-31"
# LSM index for July 2026: 119.10 in the October 2026 release, restated to 119.15 in November's
curl -H "X-API-Key: pk_live_xxx"   "https://api.pakdatahub.com/v1/series/industry.lsm.qim/revisions?from=2026-07-01&to=2026-07-31"

The /revisions endpoint

GET /v1/series/{id}/revisions lists each point's history in one call: the first print, every figure it replaced with the date it stopped being current and where that print came from, and today's value. Same plan as vintages (Pro and Business; 403 otherwise). Parameters: from, to, dims, limit, sort, and changed_only=true to keep only points that were ever revised.

curl -H "X-API-Key: pk_live_xxx"   "https://api.pakdatahub.com/v1/series/bop.goods_export_fob/revisions?from=2020-01-01&to=2020-01-31"

January 2020 exports (US$ million): first printed as 2,051, revised to 2,052, then 2,053, and 2,056 today.

{
  "success": true,
  "series": "bop.goods_export_fob",
  "data": [
    { "date": "2020-01-31", "dims": {}, "value": 2056.0, "first_print": 2051,
      "first_seen": "2020-03-31",
      "revisions": [
        { "value": 2051.0, "until": "2020-04-30", "source": "SBP Monthly Statistical Bulletin" },
        { "value": 2052.0, "until": "2020-08-31", "source": "SBP Monthly Statistical Bulletin" },
        { "value": 2053.0, "until": "2026-08-17", "source": "SBP Monthly Statistical Bulletin" }
      ] }
  ],
  "pagination": { "next_cursor": null, "count": 1, "revised_points": 1 }
}

first_seen is the date the figure was first public (the end of the month of the first issue that printed it, or when our own tracking first recorded it). source is PakDataHub revision tracking for revisions we recorded ourselves since August 2026. A last bulletin figure that differs from today's value, with no dated print of the change, is shown as superseded on 17 August 2026, when our own tracking began.

Uses

curl -H "X-API-Key: pk_live_xxx" \
  "https://api.pakdatahub.com/v1/series/inflation.cpi.national?vintage=2026-08-31&transform=yoy"

·

Also as Markdown: api-vintages.md · All docs