Part of a Data Solution
- Explore →
Postal Codes Solution
Every worldwide postal-code dataset in one bundle — the ultimate global reference for precise postal codes.
Premium
You're viewing a free sample
Get the complete dataset — all rows and files — delivered instantly after checkout, with lifetime access to the latest version.
- Secure checkout via Stripe
- Instant download after payment
- Lifetime access to the latest version
- Creative Commons Attribution 4.0 International license
API Access
Access dataset files directly from scripts, code, or AI agents.
Browse dataset files
API Access
Access dataset files directly from scripts, code, or AI agents.
Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.
Start with these files — they give you everything you need to understand and access the dataset.
- 1. Fetch datapackage.yaml to inspect schema and resources
- 2. Download data resources listed in datapackage.yaml
- 3. Read README.md for full context
Data Files
postal-codes-pk-sample
| Field | Type | Description | Constraints | Title |
|---|---|---|---|---|
| country_code | string | ISO 3166-1 alpha-2 -- always PK | Country Code | |
| postal_code | string | Pakistani postal code (5 digits) | { "pattern": "^\\d{5}$" } | Postal Code |
| place_name | string | Delivery post office name | Place Name | |
| admin_name1 | string | Province/territory -- 7/7 covered | Administrative Name 1 | |
| admin_code1 | string | ISO 3166-2:PK code | Administrative Code 1 | |
| admin_name2 | string | Not populated -- Pakistan Post's own directory has no second admin tier (only province + parent GPO, a routing concept, not a government division) | Administrative Name 2 | |
| admin_code2 | string | Not populated | Administrative Code 2 | |
| admin_name3 | string | Not populated | Administrative Name 3 | |
| admin_code3 | string | Not populated | Administrative Code 3 | |
| latitude | number | GeoNames latitude (WGS84) | Latitude | |
| longitude | number | GeoNames longitude (WGS84) | Longitude | |
| accuracy | string | GeoNames accuracy of latitude/longitude. GeoNames documents 1=estimated, 4=geonameid, 6=centroid of addresses or shape; other values (e.g. 3) occur upstream without documentation. Empty where GeoNames gives none. | Accuracy | |
| alternative_city_name | string | Not populated in this release | Alternative City Name |
Download
Download sample CSVAbout
- Last updated
- 2 October 2026
- Total rows
- 100
- Format
- CSV
- File size
- 6.26 kB
About this dataset
Postal Codes Dataset for Pakistan (PK)
This dataset lists Pakistani postal codes with post-office place names, provinces and territories (ISO 3166-2:PK) and WGS84 coordinates, covering every province and territory. It has been cross-checked against Pakistan Post's National Post Code Directory (Part-I, Delivery Post Offices): every postal code and place name pair matched.
Column definitions, row count, size and last-updated date are in datapackage.yaml.
Data Sources
- Postal codes, place names and coordinates: © GeoNames, postal code export
for Pakistan, CC BY 4.0. See
ATTRIBUTION.txt.
Changes made to the source data: admin_code1 derived as ISO 3166-2:PK through a name-based crosswalk
(not GeoNames' own internal numbering); literal "nan" values emptied.
Not endorsed by, or affiliated with, GeoNames or Pakistan Post.
Known limitations
- The primary key is (
postal_code,place_name), neverpostal_codealone. admin_name2andadmin_name3are empty: Pakistan Post's directory stops at province level (plus a parent-GPO routing field, which is not a government administrative division).alternative_city_nameis not populated.
Usage
The dataset files are available in CSV format and can be accessed and downloaded using
the links provided in datapackage.yaml.
For other inquiries, contact datahub@datopian.com