CyberMax commited on
Commit
1bb58f7
·
verified ·
1 Parent(s): 5332304

Ziplore US ZIP codes 2026-09-24: GeoNames + Census 2024 Gazetteer + ACS 2020-2024

Browse files
Files changed (3) hide show
  1. README.md +57 -0
  2. meta.json +12 -0
  3. zips.csv +0 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ pretty_name: Ziplore US ZIP Codes with Census Demographics (41,682 ZIPs)
4
+ tags:
5
+ - zip-codes
6
+ - postal-codes
7
+ - geocoding
8
+ - census
9
+ - demographics
10
+ - american-community-survey
11
+ - us
12
+ size_categories:
13
+ - 10K<n<100K
14
+ configs:
15
+ - config_name: default
16
+ data_files: zips.csv
17
+ ---
18
+
19
+ # Ziplore US ZIP Codes: city, county, coordinates, time zone and Census demographics
20
+
21
+ A free, current replacement for the frozen ZIP data inside `uszipcode` (last release 2022), `pyzipcode` (2021) and the `zipcodes` npm package (2018). One row per US ZIP code (50 states, DC, Puerto Rico, the island areas and APO/FPO/DPO military ZIPs), 41,682 rows.
22
+
23
+ | column | meaning |
24
+ |---|---|
25
+ | `zip` | 5-digit ZIP code (text, keeps leading zeros) |
26
+ | `city` | USPS place name (GeoNames); `APO`/`FPO`/`DPO` for military ZIPs |
27
+ | `state`, `stateName`, `stateFips` | USPS state code, name, 2-digit FIPS |
28
+ | `county`, `countyFips` | main county (the one holding most of the ZIP's land area, Census 2020 relationship file) and its 5-digit FIPS |
29
+ | `counties` | every county the ZIP touches: `FIPS:share_of_land_area` separated by `;` |
30
+ | `latitude`, `longitude` | ZIP centre (GeoNames; Census internal point when GeoNames has none) |
31
+ | `timezone` | IANA time zone at that point (e.g. `America/Chicago`) |
32
+ | `hasZcta` | `true` when the ZIP has a Census ZIP Code Tabulation Area (a residential delivery area). PO-box-only and single-building ZIPs don't, so they have no area or demographics |
33
+ | `landSqMi`, `waterSqMi` | ZCTA land and water area, square miles (2024 Gazetteer) |
34
+ | `population`, `populationDensity` | ACS 2020–2024 5-year population and people per square mile of land |
35
+ | `medianAge`, `medianHouseholdIncome`, `perCapitaIncome` | ACS 5-year estimates (dollars) |
36
+ | `medianHomeValue`, `medianGrossRent` | ACS 5-year estimates. Top-coded by the Census: `2000001` means $2,000,000 or more, `250001` income means $250,000 or more, `3501` rent means $3,500 or more |
37
+ | `housingUnits`, `occupiedUnits`, `ownerOccupiedUnits`, `ownerOccupiedPct` | ACS housing counts and the share of occupied homes that are owner-occupied |
38
+
39
+ Empty cell = not available (no ZCTA, or the Census suppressed the estimate for a very small area).
40
+
41
+ ```python
42
+ import pandas as pd
43
+ df = pd.read_csv("https://huggingface.co/datasets/shaw276/us-zip-codes-demographics/resolve/main/zips.csv", dtype={"zip": str, "stateFips": str, "countyFips": str})
44
+ print(df[df.zip == "60614"].T)
45
+ ```
46
+
47
+ ## Want radius search, nearest ZIP from coordinates, city → ZIPs, or an API for AI agents?
48
+
49
+ [Ziplore on the Apify Store](https://apify.com/cybermax/zip-data-api) answers those from this same table: give it ZIP codes (or addresses containing them), "City, ST" names, coordinates or a radius, and it returns one clean JSON record per ZIP with distance in miles, nearby ZIPs, current UTC offset and the demographics above. $0.0005 per ZIP returned; unknown ZIPs are free. It also works as an MCP tool for AI agents.
50
+
51
+ ## Sources and licence
52
+
53
+ - ZIP codes, place names, coordinates: [GeoNames](https://www.geonames.org/) postal code dump, CC BY 4.0.
54
+ - ZCTA areas: US Census Bureau 2024 Gazetteer; ZCTA-to-county: Census 2020 relationship file; demographics: American Community Survey 2020–2024 5-year estimates (table-based summary files). Public domain.
55
+ - Time zones: [timezonefinder](https://github.com/jannikmi/timezonefinder), built on [timezone-boundary-builder](https://github.com/evansiroky/timezone-boundary-builder) (ODbL, © OpenStreetMap contributors).
56
+
57
+ This table is published under CC BY 4.0: credit "Ziplore by CyberMax, with data from GeoNames, the US Census Bureau and OpenStreetMap contributors". ACS figures are survey estimates with margins of error; ZCTAs approximate, and are not identical to, USPS delivery areas. Made by CyberMax.
meta.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "built": "2026-09-24",
3
+ "rows": 41682,
4
+ "withZcta": 33791,
5
+ "sources": {
6
+ "geonames": "US+PR postal codes, downloaded 2026-09-24",
7
+ "gazetteer": "2024 ZCTA",
8
+ "acs": "2020-2024 5-year",
9
+ "relationship": "2020 ZCTA-county"
10
+ },
11
+ "attribution": "GeoNames (CC BY 4.0), US Census Bureau, OpenStreetMap contributors via timezone-boundary-builder (ODbL)"
12
+ }
zips.csv ADDED
The diff for this file is too large to render. See raw diff