open source · unofficial

Pakistan fuel prices, as an API

A free, public API for fuel prices in Pakistan, aggregated from PSO, Shell, and PakWheels. There's no official government API for this — so we built one.

Last updated: Sat, 04 Jul 2026 16:21:37 GMT

Current prices

All sources PSO Shell PakWheels
Source Product City Price Scraped at

API docs

Base URL: https://fuel.trackmate.page/api. Public, no API key needed. Rate limited to keep it fair for everyone — see below. Paste "Copy docs for AI" into an LLM/agent to give it full context on this API.

GET/api/prices

Latest known price for every source/product/city combination.

curl https://fuel.trackmate.page/api/prices
200 OK 429 rate_limited
GET/api/prices/:source

Latest prices from one source only. :source is one of pso, shell, pakwheels.

curl https://fuel.trackmate.page/api/prices/pso
200 OK 400 invalid_source 429 rate_limited
GET/api/history?product=petrol&days=30

Historical snapshots. product and source are optional filters; days defaults to 30, max 365.

curl "https://fuel.trackmate.page/api/history?product=hsd&days=90"
200 OK 400 invalid_source 429 rate_limited
GET/api/health

Scraper status — when it last ran and which sources succeeded/failed.

curl https://fuel.trackmate.page/api/health
200 OK 429 rate_limited

Rate limits: ~60 requests/minute per IP, with a small burst allowance. Exceeding it returns 429 with a Retry-After header. Please cache responses client-side — prices only change a few times a month.

About the data

Prices are scraped periodically from public pages on psopk.com, shell.com.pk, and pakwheels.com. This is an independent, unofficial aggregation — not affiliated with OGRA, PSO, Shell, or PakWheels. Always confirm at the pump for anything time-sensitive.

Source code: github.com/KashifKhn/fuel-api — issues and PRs welcome.