How to get Pakistan debt securities & bond prices via API

Fetch per-instrument valuation prices for floating-rate PIBs, GoP Ijara Sukuk and corporate TFC/Sukuk, plus trade-level secondary-market transactions, from the /v1/securities endpoints (MUFAP). It's updated daily from MUFAP, covering 01 Jan 2022 to today.

Endpoint: /v1/securities

Fetch it — copy & paste

Replace pk_live_xxx with your key.

cURL

curl -H "X-API-Key: pk_live_xxx" \
  "https://api.pakdatahub.com/v1/securities?type=gis_sukuk"

Python

import httpx

r = httpx.get("https://api.pakdatahub.com/v1/securities?type=gis_sukuk", headers={"X-API-Key": "pk_live_xxx"}, timeout=30)
print(r.json())

JavaScript

const res = await fetch("https://api.pakdatahub.com/v1/securities?type=gis_sukuk", {
  headers: { "X-API-Key": "pk_live_xxx" },
});
console.log(await res.json());

pandas

import httpx, pandas as pd

r = httpx.get("https://api.pakdatahub.com/v1/securities?type=gis_sukuk", headers={"X-API-Key": "pk_live_xxx"})
df = pd.json_normalize(r.json().get("data", r.json()))

No key yet? Get a free one. Then see the full API reference.

Explore

Browse all datasets · More API guides

Questions

How do I get Pakistan government bond (PIB/Sukuk) prices via API?

GET /v1/securities?type=pib_floating|gis_sukuk|tfc_sukuk lists instruments; GET /v1/securities/{code}/prices returns one instrument's price history. Codes may contain slashes for corporate TFCs.

Is trade-level debt data available?

Yes — GET /v1/securities/trades returns reported secondary-market debt transactions with date, venue, issue, face value, volume, value and price (% of face).