PAKDATAHUB

How to get Pakistan trade (exports & imports) data via API

Fetch Pakistan's monthly exports and imports by commodity from /v1/trade (PBS) — build a trade-balance dashboard or track commodity-level export/import trends. It's updated monthly from PBS, covering 01 Jan 2010 to today.

Endpoint: /v1/trade

Fetch it — copy & paste

Replace pk_live_xxx with your key.

curl -H "X-API-Key: pk_live_xxx" \
  "https://api.pakdatahub.com/v1/trade?flow=export&commodity=RICE"

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 get Pakistan export and import data via API?

GET /v1/trade?flow=export|import returns monthly trade by commodity; filter with commodity= or group= and a from/to range.