How to get Pakistan PIB 7Y cut-off yield data via API
PIB auction cut-off yield, 7Y tenor It's updated irregular from SBP, covering 30 Aug 2008 to today. The latest value is 12.59 (27 May 2010).
Endpoint: /v1/series/rates.auction.pib.7y.cutoff_yield · series id rates.auction.pib.7y.cutoff_yield
Fetch it — copy & paste
Replace pk_live_xxx with your key. JSON by default, CSV with format=csv, and add transform=yoy for year-over-year.
curl -H "X-API-Key: pk_live_xxx" \
"https://api.pakdatahub.com/v1/series/rates.auction.pib.7y.cutoff_yield?from=2015-01-01&sort=asc"No key yet? Get a free one — 500 free API calls a month, no card. Then see the full API reference.
Questions
How do I fetch Pakistan PIB 7Y cut-off yield data from an API?
Send a GET request to /v1/series/rates.auction.pib.7y.cutoff_yield on the PakDataHub REST API with your X-API-Key header. It returns irregular observations as JSON (or CSV with format=csv). Get a free key at pakdatahub.com/signup.
Is Pakistan PIB 7Y cut-off yield available as JSON or CSV?
Both. The endpoint returns JSON by default; append format=csv for a downloadable CSV that loads straight into pandas or a spreadsheet.
How far back does the PIB 7Y cut-off yield data go?
PakDataHub carries this series from 2008-08-30 to today, sourced from SBP and cross-validated against published figures.
Do I need an API key?
Yes — a free key. Sign up in under a minute at pakdatahub.com/signup and get 500 free API calls every month; no card required.