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-pr-sample
| Field | Type | Description | Constraints | Title |
|---|---|---|---|---|
| country_code | string | ISO 3166-1 alpha-2 -- always PR | Country Code | |
| postal_code | string | US ZIP code (5 digits, leading zero significant -- 006xx / 007xx / 009xx) | { "pattern": "^\\d{5}$" } | Postal Code |
| place_name | string | Post office / locality name | Place Name | |
| admin_name1 | string | Municipio -- all 78 covered | Administrative Name 1 | |
| admin_code1 | string | Census FIPS county-equivalent code for the municipio (5 digits, state prefix 72). NOT an ISO 3166-2 code -- ISO 3166-2 defines no subdivisions for Puerto Rico. | { "pattern": "^72\\d{3}$" } | Administrative Code 1 |
| admin_name2 | string | Not populated -- Puerto Rico has one sub-territorial admin tier | 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
- 5.73 kB
About this dataset
Postal Codes Dataset for Puerto Rico (PR)
This dataset lists the ZIP codes of Puerto Rico with place names, municipios and WGS84 coordinates. Puerto Rico uses the US ZIP system: codes are five digits in the ranges 006xx, 007xx and 009xx.
Column definitions, row count, size and last-updated date are in datapackage.yaml.
Data Sources
- ZIP codes, place names, municipios and coordinates: © GeoNames, postal code export for Puerto Rico, CC BY 4.0.
Changes made to the source data: admin_code1 set to the five-digit US Census FIPS county-equivalent
code ("72" plus GeoNames' three-digit municipio code); literal "nan" values emptied.
Not endorsed by, or affiliated with, GeoNames.
Known limitations
admin_code1is the Census FIPS code (for example Adjuntas 72001, Florida 72054), not an ISO code: ISO 3166-2 defines no subdivision codes for Puerto Rico, so none is invented.admin_name2,admin_code2,admin_name3andadmin_code3are empty. Puerto Rico has one sub-territorial tier (the municipio), carried inadmin_name1/admin_code1; no barrio-level postal assignment exists in the source.alternative_city_nameis not populated.- The primary key is (
postal_code,place_name).
Usage
The dataset files are available in CSV format and can be accessed and downloaded using
the links provided in datapackage.yaml. Read postal_code as text, never as a number:
Puerto Rican codes start with zero (00601), and a numeric read turns it into 601.
For other inquiries, contact datahub@datopian.com