Series & the catalog

Almost everything in PakDataHub is a time series: rows of (date, value, dims) under one stable id. The catalog describes every series, and GET /v1/series/{id} returns its data.

The exceptions are the richer, entity-shaped datasets, which have their own endpoints:

Series ids

Ids are lowercase, dot-separated and human-readable, in the form topic.group.item:

Id What it is
fx.rate.avg.usd PKR per US dollar, monthly average, from 1947
rates.kibor.3m KIBOR 3-month, daily, with side = bid/offer
inflation.cpi.national.yoy Headline CPI inflation, year-on-year %
payments.raast.p2p.value Raast person-to-person transfer value, quarterly
commodities.wheat_flour Wheat flour (20 kg bag), weekly, with city

Ids are case-sensitive and stable. Use them verbatim; don't re-slug them or swap the dots for hyphens.

Series auto-discovered from SBP's open data sometimes carry a numeric suffix (_2, _3) that tells apart series whose names collide.

Modules

Every series belongs to one module. You can filter the catalog and search by module:

Module Covers
forex PKR exchange rates, REER/NEER
fixed-income KIBOR, policy rate, PKRV/PKISRV curves, auction cut-offs
prices CPI and WPI (headline and by group), core inflation, cost of living and grocery basket by city
commodities Weekly SPI retail prices
external Balance of payments, trade by country, FDI, reserves, remittances by country
monetary Money supply, banking aggregates, deep KIBOR/KIBID history, NPLs, branchless banking
real GDP, large-scale manufacturing (LSM), auto, fertilizer, cement, corporate sector
public-finance Federal and provincial revenue and expenditure, FBR taxes
debt External debt, government securities holdings, national savings
social Population, labour, literacy, education, health, confidence surveys, telecom (PTA)
alternate Digital payments (Raast, cards, POS, PRISM), SME finance
energy Petrol and diesel pump prices, the hourly electricity price, grid demand and fuel mix, power-plant output, capacity and merit order
regional Census population by province, district and tehsil (1981-2023), PSLM district survey, economic and agricultural censuses, LFS and HIES by province

The economic module (headline indicators) was folded into the topical modules on 2026-10-17: CPI groups → prices, LSM → real, telecom → social, remittances.total → external. Series ids did not change.

See the data dictionary for every module, with real ids.

The catalog record

GET /v1/catalog/{id} (public) describes one series:

{
  "id": "rates.kibor.3m",
  "module": "fixed-income",
  "name": "KIBOR 3-Month",
  "description": "Karachi Interbank Offered Rate, 3-month tenor (bid/offer)",
  "unit": "percent",
  "frequency": "daily",
  "source": "SBP",
  "source_url": "https://www.sbp.org.pk/ecodata/kibor/kibor.asp",
  "dimensions": { "side": ["bid", "offer"] },
  "first_date": "2005-06-09",
  "last_date": "2026-10-02",
  "tier": "basic",
  "canonical_id": null
}
Field Meaning
unit e.g. percent, pkr (per-unit rupees), index, count, usd_mn (US$ millions), usd_th (thousands), pkr_th, pkr_mn, pkr_bn, pkr_per_kg
frequency daily, weekly, monthly, quarterly, half_yearly, annual or irregular (e.g. auctions)
dimensions the dimension keys and values the series carries (see below)
tier Informational: every plan reaches every series. Plans differ by volume, history through the API, downloads, revision vintages and webhooks (see plans).
canonical_id set when this series is a near-duplicate of another; prefer the canonical one

Dimensions

Some series carry more than one value per date, labelled by dimensions:

Filter with dims=key:value, and comma-separate several filters:

curl -H "X-API-Key: pk_live_xxx" \
  "https://api.pakdatahub.com/v1/series/rates.kibor.3m?dims=side:offer&from=2026-01-01"

Without dims you get every dimension's rows, each tagged in data[].dims.

Discovering series

Getting data

Once you have an id:

curl -H "X-API-Key: pk_live_xxx" \
  "https://api.pakdatahub.com/v1/series/inflation.cpi.national.yoy?from=2020-01-01&sort=asc&format=csv"

See Series endpoint for every parameter, and Transforms for server-side YoY, MoM, % change, moving average and rebasing.

·

Also as Markdown: series-and-catalog.md · All docs