Postal Codes Dataset for United States, US

558
Updated:
Files:1
Size:3.02 MB
Rows:41,488
Formats:csv

Postal Codes Dataset for United States, US including name of the city, town, or place, various administrative divisions and alternative city names.

Part of a Data Solution

  • Postal Codes Solution

    Every worldwide postal-code dataset in one bundle — the ultimate global reference for precise postal codes.

    Explore →

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 (GeoNames) license
20% off
$49.90$39.92
one-time payment

API Access

Access dataset files directly from scripts, code, or AI agents.

Browse dataset files
Dataset Files

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.

/logistics/postal-codes-us/
https://datahub.io/logistics/postal-codes-us/_r/-/.licensing-notes.md
https://datahub.io/logistics/postal-codes-us/_r/-/.migration-notes.md
https://datahub.io/logistics/postal-codes-us/_r/-/ATTRIBUTION.txt
https://datahub.io/logistics/postal-codes-us/_r/-/README.md
https://datahub.io/logistics/postal-codes-us/_r/-/datapackage.yaml
Key Files

Start with these files — they give you everything you need to understand and access the dataset.

datapackage.yaml— metadata & schema
https://datahub.io/logistics/postal-codes-us/_r/-/datapackage.yaml
README.md— documentation
https://datahub.io/logistics/postal-codes-us/_r/-/README.md
Typical Usage
  1. 1. Fetch datapackage.yaml to inspect schema and resources
  2. 2. Download data resources listed in datapackage.yaml
  3. 3. Read README.md for full context

Data Files

postal-codes-us-sample


About this dataset

United States (US) — internal licensing notes

Not mentioned in datahub-next#941 — no known licensing flag on this country. Source: GeoNames US postal export, CC BY 4.0.

Session finding, 2026-08-19 — reconstructed from nothing, and a stale

assumption corrected

Same situation as Australia: no build script survived anywhere, only a source-research note (no implementation). That note's own "Recommendation" section explicitly labelled the live product as plain GeoNames US ("what we ship now") — this turned out to be wrong. Diffing raw GeoNames against live R2 us.csv found real enrichment already present:

  • admin_code2 (county FIPS): raw GeoNames has a bare 3-digit county FIPS ("013"); live R2 has the full 5-digit state+county FIPS ("02013"). Reproduced via a static state-abbreviation-to-FIPS-prefix table (no live fetch needed) — now matches R2 exactly.
  • admin_name2 (county name): raw GeoNames has the bare county name; live R2 mostly carries the official Census name with legal suffix ("… County") — but not on every row, so whatever enrichment produced the live data didn't have 100% coverage either. This gap is NOT closed — every census.gov URL tried returned an HTML error page from this environment, either moved or blocked. Documented rather than silently shipped as a mismatch.

Row count: 41,490 built vs 41,488 live (2-row drift, expected — GeoNames is a living community dataset). 513 state-FIPS lookup misses on rebuild — only one cause explicitly checked (MH/Marshall Islands, a real non-standard admin1 code on some military postal codes); the rest not fully characterized, flagged unverified rather than claimed fine.

The stale source-research note should be corrected to say this enrichment is already live, not merely proposed — not fixed as part of this session since it's documentation, not code.

No further licensing review — this was a code-reproducibility audit.

Correction, 2026-10-03 (P5, pc-28e.7.56)

The 2026-08-19 reconstruction above was superseded. The live file was built by the unmerged origin/feat/us-consolidated-r2 pipeline, which takes county names and GEOIDs from the Census 2020 ZCTA-to-County relationship via the public-domain zctaCrosswalk GitHub mirror. scripts/produce.py ports that pipeline and reproduces live cell-for-cell.