Pakistan Fuel Price API
Official OGRA-notified petrol, diesel, kerosene and LPG prices as JSON. No API key, no registration, no rate limit. 305 records, refreshed within minutes of each OGRA notification — currently 2026-08-20.
Endpoints
/api/latestThe currently notified rate for every product, with the effective date of the notification it came from.
curl https://oilprices.pk/api/latest/api/price-historyEvery price record held, newest notifications last. Returns a bare JSON array; pagination details ride on response headers.
- product
- Petrol, Diesel, Kerosene or LPG. Omit for all four.
- year
- Four-digit year, e.g. 2026.
- limit
- 1–5000. Omit to receive every matching record.
- offset
- Records to skip. Use with limit to page.
curl "https://oilprices.pk/api/price-history?product=Petrol&year=2026&limit=5"Response headers
- X-Total-Count
- Total records matching the filter, before limit/offset.
- Link
- Next page, as rel="next", when more records remain.
- Cache-Control
- Rates are cached for 5 minutes, history for an hour.
Cross-origin requests are allowed from any origin, so the API can be called directly from a browser. X-Total-Count and Link are exposed to cross-origin readers.
Coverage
The four series do not share a start date. Kerosene reaches furthest back; petrol and diesel hold recent notifications only. Check this table before quoting a range.
| Product | Records | Earliest | Latest | Unit |
|---|---|---|---|---|
| Kerosene | 208 | 2015-07-01 | 2026-08-19 | PKR/litre |
| LPG | 53 | 2022-03-01 | 2026-08-01 | PKR/kg |
| Diesel | 22 | 2026-07-21 | 2026-08-20 | PKR/litre |
| Petrol | 22 | 2026-07-21 | 2026-08-20 | PKR/litre |
Bulk download
The whole dataset is mirrored to GitHub as JSON and CSV, updated with every notification: quantanow/pakistan-fuel-prices. Useful if you want the history in one file rather than paging the API. The market and commodity figures shown elsewhere on this site are not included — those come from Yahoo Finance and PSX, and are not ours to redistribute.
Licence & attribution
Published under Creative Commons Attribution 4.0. Use it commercially, redistribute it, build on it — the one condition is that you credit the source with a link.
Fuel price data from <a href="https://oilprices.pk">OilPrices.pk</a>, CC BY 4.0.The underlying prices are public notifications issued by the Oil and Gas Regulatory Authority. This site parses them from the published PDFs; see the methodology for how, and what is checked before a rate is published.
Caveats worth knowing
- Prices are the maximum ex-depot sale price OGRA notifies. Retail pumps beyond the 23 listed depots may add secondary freight.
- LPG is quoted per kilogram; the others per litre. The
unitfield carries this on every record. - A record only appears once its notification has been parsed and reconciled against the source PDF. An implausible parse is dropped rather than published.
- This is an independent project. It is not affiliated with or endorsed by OGRA.