Ports
Pakistan's two big ports, ship by ship and day by day: Port Qasim from the Port Qasim Authority's signed daily statement (every day since 31 May 2019) and Karachi Port from Karachi Port Trust's tonnage report (every day and month since 1 July 2020) and its daily tonnage statement, container report and shipping programme (ship by ship from November 2026), plus every ship call at Karachi — arrival, departure and purpose — since 1 May 2026. Every ship is kept, and the totals are daily series. The ports topic page shows the headline figures.
| Module | external |
| Frequency | Daily (Port Qasim as at 08:00; Karachi Port, 24 hours to 07:30) |
| Endpoints | /v1/series/{id} for the totals, /v1/ports/vessels for every ship |
#Port Qasim — daily series
Each value comes from one day's statement, as at 08:00 that day. "Cargo handled" is what was unloaded (import) or loaded (export) in the 24 hours to 08:00.
| Id | What it is | Dims |
|---|---|---|
ports.qasim.cargo_handled |
Cargo handled, tonnes (bulk, break-bulk and liquids) | level: total, commodity, terminal; direction: all, import, export; commodity · terminal |
ports.qasim.containers_handled |
Containers handled, TEUs (PQA prints no unit; its daily figures add up to its annual TEU totals) | level: total, terminal; direction |
ports.qasim.lng_handled |
LNG discharged, cubic metres | level: total, terminal |
ports.qasim.ships_at_berth |
Ships alongside at 08:00 | level: total, terminal |
ports.qasim.ships_at_anchorage |
Ships waiting at the outer anchorage | level: total, commodity, loading_country; direction; commodity · country |
ports.qasim.cargo_at_anchorage |
Tonnes aboard the ships waiting | as above |
ports.qasim.expected_arrivals |
Ships PQA expects next | direction |
ports.qasim.berthings_to_date |
PQA's running count of vessels berthed since each terminal opened (the day-to-day change is the number of ships berthed) | level: total, terminal |
One unit per series: tonnes, TEUs and cubic metres of LNG are never added together. The series page charts level=total (and direction=all); pick a commodity, terminal or loading country with dims, e.g. dims=level:commodity,direction:import,commodity:Coal.
#Port Qasim — by fiscal year (FY2014-15 →)
From PQA's port performance table. Dated 30 June of the fiscal year's end; the newest year is provisional, and every restatement since 2019 is kept as a revision (?vintage=, /revisions).
| Id | What it is | Dims |
|---|---|---|
ports.qasim.cargo_annual |
Cargo handled, tonnes | level: total (with containers), cargo_type (cargo: dry, liquid, containers, dry_and_liquid), terminal, commodity; direction; terminal · commodity |
ports.qasim.ships_annual |
Ships handled | level: total, terminal |
ports.qasim.teu_annual |
Container TEUs | direction |
PQA's totals are kept as printed (its dry + liquid lines don't always add up to its total); each terminal's commodities are checked against its sub-total.
#Karachi Port — daily series
| Id | What it is | Dims |
|---|---|---|
ports.karachi.cargo_handled |
Cargo discharged (import) and loaded (export) in the 24 hours to 07:30, tonnes; container ships count the weight of their boxes | level: total, cargo_type, commodity, terminal; direction; cargo: general (incl. containers), bulk, dry, liquid — and from Nov 2026 containers, break_bulk |
ports.karachi.cargo_handled_monthly |
The same, per month (dated the month's last day) | level: total, cargo_type; direction; cargo |
ports.karachi.containers_teu |
Containers handled in the 24 hours to 07:00, TEUs | level: total, terminal (KICT, PICT, SAPT); direction; cargo: all, laden, empty |
ports.karachi.containers_teu_monthly |
TEUs per month | direction |
ports.karachi.ships_working |
Ships working cargo at a berth | level: total, terminal |
ports.karachi.ships_scheduled |
Ships in the day's shipping programme (expected or waiting) | level: total, vessel_type; direction |
ports.karachi.cargo_scheduled |
Tonnes those ships are to discharge or load | level: total, commodity; direction |
History: the total and the cargo-type split go back to 1 July 2020, read from KPT's tonnage report — to the nearest 1,000 t (and 1,000 TEU) for a day, and per month from its monthly figures. A report day D is the same 24 hours as the daily statement dated D+1, so it is dated D+1 here. From November 2026 the figures come from the daily statement, to the tonne, with the commodity and wharf breakdowns, containers and the shipping programme; the monthly series from then on is the sum of the days.
#Every ship — /v1/ports/vessels
GET /v1/ports/vessels?port=PQA&date=2026-10-31 one day's statement (omit date for the latest)
GET /v1/ports/vessels?port=PQA&date=2026-10-31§ion=anchorage
GET /v1/ports/vessels?vessel=MAGIC CELESTE one ship across every statement it appears in
GET /v1/ports/dates?port=PQA the statement dates on file (no key needed)
port: PQA or KPT. section: berth (alongside, with cargo figures), anchorage (waiting, Port Qasim), expected (Port Qasim), sailed (the previous day's sailings, Port Qasim, from 2024), containers (Karachi Port, TEUs per container ship), programme (Karachi Port's shipping programme: ships expected or waiting, with cargo, quantity, draft and allotted berth), calls (every ship call at Karachi Port since 1 May 2026, dated by its arrival day). format=csv for a spreadsheet. Each row is one ship × commodity × direction on one statement date:
| Field | Meaning |
|---|---|
date, port, section |
The statement |
vessel, call_ref |
Ship name as printed (without M.V-/M.T-) and PQA's registration number for the call |
direction |
import (unloaded), export (loaded), or blank where the port doesn't say |
commodity, unit |
Readable commodity name and the unit of its figures: metric ton, cubic metre (LNG), teu (containers), units |
terminal, agent, flag, country |
Readable names; the publisher's text is kept beside them in berth_raw, agent_raw, flag_raw, port_raw and commodity_raw |
manifest |
Manifest quantity (for ships at anchorage or expected: the weight aboard) |
handled_24h, handled_before, balance |
Cargo handled in the last 24 hours, before that, and still to handle |
berthed_at, arrived_on, expected_at, departs_at |
Berthing time, arrival day at the anchorage, expected arrival, cast-off or sailing time |
checks_ok |
Whether manifest = last 24 hours + previous + balance (Port Qasim); for lines without a manifest, whether they agree with the day before's statement (details.chain); for Karachi, whether the wharf's ships add up to its printed total |
details |
Anything else the statement prints for the ship (pilot, unit as printed, gangs, last and next port, laden/empty 20' and 40' boxes …) |
Karachi ship calls (section=calls): one row per call, under the day the ship arrived — arrived_on with the time in details.arrived_at, departs_at when it sailed (blank while still in port, filled in once it leaves), the purpose as printed in details.work ("Disc./Load Containers", "Load Rice") with its cargo in commodity, direction (blank for ships that both discharge and load) and KPT's ship category in details.kpt_type (Container Ship, Tanker, Car Carrier …). A ship that comes back is a new call; one listed twice for one arrival (it moved berth) has seq 0 and 1.
A ship alongside for five days has five rows, one per statement, so you can follow its cargo being worked down — and see any manifest or balance the port restated from one day to the next. That day-by-day record is these sources' revision history.
#How the statements are read
Port Qasim prints no import/export column for ships at berth: each commodity takes two lines, unloaded figures on the first and loaded on the second, so PakDataHub reads figures by their position. Two ships on one berth and ships carrying several commodities are split the same way. Every figure line is checked (manifest = last 24 hours + previous + balance); a line that fails stays in /v1/ports/vessels with checks_ok: false but is left out of the daily totals. Lines printed without a manifest (container ships) are checked against the statement a day before: today's "previous" must equal yesterday's previous plus last 24 hours. Where it doesn't, PQA restated a figure (a round "500" replaced by the real count the next day), and details.chain says so. "NIL" is 0 and "NO WORK" is 0 with a note. PQA's running count of vessels berthed is used when its terminals add up to PQA's printed total.
Port Qasim's statements for 215 days between June 2022 and February 2023 are not available (22 June – 27 July, 7 August – 24 November and 21 December 2022 – 19 February 2023, and a few single days): its ships and daily series have nothing for those days. One upload filed under 30 July 2019 is PQA's statement for 26 September 2002, reprinted by its current system: its ships are kept under that date in /v1/ports/vessels, outside the daily series.
Karachi Port's daily statement gives, for each working ship, what was discharged and loaded to date, the balance and the last 24 hours, wharf by wharf, each wharf with its printed total (the ships are checked against it) and a closing summary by cargo type. Its container report gives each container ship's laden and empty 20' and 40' boxes, TEUs and tonnes, and the TEUs per terminal; its shipping programme lists every ship expected or waiting, by vessel type, with what it will discharge or load.
Commodity, terminal, agent and country names go through one registry, so "SOYABEEN OIL" and "SOYABEAN OIL", or an agent cut short at 16 letters, read as one name.
curl -H "X-API-Key: pk_live_xxx" \
"https://api.pakdatahub.com/v1/series/ports.qasim.cargo_handled?dims=level:commodity,direction:import,commodity:Coal&from=2025-07-01"
curl -H "X-API-Key: pk_live_xxx" \
"https://api.pakdatahub.com/v1/ports/vessels?port=PQA§ion=anchorage"
curl -H "X-API-Key: pk_live_xxx" \
"https://api.pakdatahub.com/v1/series/ports.karachi.containers_teu?dims=level:total,direction:all,cargo:all"
Related: trade by product and partner (Trade), the oil and LNG import bill (External sector).