--- # LATEST: https://huggingface.co/datasets/CyberMax-tools/us-zip-codes-demographics/blob/main/latest.json (data date, refresh cadence, fresh API, licence links; also LATEST.md) # API (fresh data): https://data.cybermaxtools.com/buy/ziplore-api?s=hf-file-us-zip-codes-demographics # Licence: cc-by-4.0 (open, unchanged); commercial licence + support: https://data.cybermaxtools.com/buy/dataset-license?s=hf-file-us-zip-codes-demographics license: cc-by-4.0 pretty_name: Ziplore US ZIP Codes with Census Demographics (41,682 ZIPs) tags: - zip-codes - postal-codes - geocoding - census - demographics - american-community-survey - us - cybermax size_categories: - 10K > **Look up any ZIP code's demographics by API instead of loading the file: $5 for 12,000 calls.** **[Buy now →](https://data.cybermaxtools.com/buy/st-ziplore-api-pack?s=hf-us-zip-codes-demographics-top)** · API key on screen the moment checkout ends · no subscription · [14-day refund](https://cybermaxtools.com/terms#payments) if it doesn't work as described · help: cybermax.tools@gmail.com > > **Need it fresh, filtered or via API?** This free file is a snapshot (Census ACS 2020-2024 figures for every US ZIP), last updated **2026-09-24**. > - **[Ziplore ZIP code API](https://data.cybermaxtools.com/buy/ziplore-api?s=hf-us-zip-codes-demographics)** (200 free calls a day, $5 for 12,000 (no expiry), or $19/month for 60,000): looks up any ZIP by API: radius search, nearest ZIP, city to ZIPs, demographics; paid keys from a $5 pack of 12,000 calls or $19/month for 60,000 (Zipcodebase Developer: $45/month for 60,000). > - **[Coffermap FY2025 federal spending workbook](https://data.cybermaxtools.com/buy/coffermap?s=hf-us-zip-codes-demographics)** ($15): every US county and state in one Excel file with top agencies, contractors and industries. > - Using it at work? **[Commercial license + support](https://data.cybermaxtools.com/buy/dataset-license?s=hf-us-zip-codes-demographics)** (from $49/year): invoice, PDF licence certificate, named support, freshness and availability commitments and an SLA; the data stays free and open for everyone. > - **[Get an email when this dataset updates](https://data.cybermaxtools.com/notify?ds=us-zip-codes-demographics&s=hf-us-zip-codes-demographics)**: free, double opt-in, unsubscribe any time. > - **[CyberMax Store](https://cybermaxtools.com/store/?utm_source=huggingface&utm_medium=dataset&utm_campaign=us-zip-codes-demographics)**: every CyberMax data product, API plan and weekly brief in one place. ## Use this dataset ```python from datasets import load_dataset ds = load_dataset("CyberMax-tools/us-zip-codes-demographics", split="train") df = ds.to_pandas() print(df.shape) df.head() # or straight into pandas (needs huggingface_hub installed) import pandas as pd df = pd.read_csv("hf://datasets/CyberMax-tools/us-zip-codes-demographics/zips.csv") ``` Need it fresh, filtered or via API? **[Ziplore ZIP code API](https://data.cybermaxtools.com/buy/ziplore-api?s=hf-use-us-zip-codes-demographics)** (200 free calls a day, $5 for 12,000 (no expiry), or $19/month for 60,000). ![Ziplore: every US ZIP code with Census demographics](https://huggingface.co/datasets/CyberMax-tools/us-zip-codes-demographics/resolve/main/images/banner.png) 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. | column | meaning | |---|---| | `zip` | 5-digit ZIP code (text, keeps leading zeros) | | `city` | USPS place name (GeoNames); `APO`/`FPO`/`DPO` for military ZIPs | | `state`, `stateName`, `stateFips` | USPS state code, name, 2-digit FIPS | | `county`, `countyFips` | main county (the one holding most of the ZIP's land area, Census 2020 relationship file) and its 5-digit FIPS | | `counties` | every county the ZIP touches: `FIPS:share_of_land_area` separated by `;` | | `latitude`, `longitude` | ZIP centre (GeoNames; Census internal point when GeoNames has none) | | `timezone` | IANA time zone at that point (e.g. `America/Chicago`) | | `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 | | `landSqMi`, `waterSqMi` | ZCTA land and water area, square miles (2024 Gazetteer) | | `population`, `populationDensity` | ACS 2020–2024 5-year population and people per square mile of land | | `medianAge`, `medianHouseholdIncome`, `perCapitaIncome` | ACS 5-year estimates (dollars) | | `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 | | `housingUnits`, `occupiedUnits`, `ownerOccupiedUnits`, `ownerOccupiedPct` | ACS housing counts and the share of occupied homes that are owner-occupied | Empty cell = not available (no ZCTA, or the Census suppressed the estimate for a very small area). ```python import pandas as pd df = pd.read_csv("https://huggingface.co/datasets/CyberMax-tools/us-zip-codes-demographics/resolve/main/zips.csv", dtype={"zip": str, "stateFips": str, "countyFips": str}) print(df[df.zip == "60614"].T) ``` ## Want radius search, nearest ZIP from coordinates, city → ZIPs, or an API for AI agents? [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. ## Sources and licence - ZIP codes, place names, coordinates: [GeoNames](https://www.geonames.org/) postal code dump, CC BY 4.0. - 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. - Time zones: [timezonefinder](https://github.com/jannikmi/timezonefinder), built on [timezone-boundary-builder](https://github.com/evansiroky/timezone-boundary-builder) (ODbL, © OpenStreetMap contributors). 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. ## More free from CyberMax - [All free CyberMax demos & datasets](https://huggingface.co/spaces/CyberMax-tools/cybermax) - [Ziplore: US ZIP Code Lookup & Radius Search](https://huggingface.co/spaces/CyberMax-tools/zip-code-lookup) - [Fipsbook: US Census Geographies with FIPS Codes, Centroids & Land Area (2025)](https://huggingface.co/datasets/CyberMax-tools/fipsbook-us-census-geographies) ## Quickstart notebook Load this dataset with pandas and see real outputs in the [quickstart notebook](https://huggingface.co/datasets/CyberMax-tools/us-zip-codes-demographics/blob/main/notebooks/quickstart.ipynb). ## Browse it on the web Free, no sign-up: one page per ZIP code: [https://data.cybermax-tools.workers.dev/zip/](https://data.cybermax-tools.workers.dev/zip/) (JSON: `/api/zip/.json`, free [ZIP lookup widget](https://data.cybermax-tools.workers.dev/widgets)). AI agents can query it through the remote MCP server `https://data.cybermax-tools.workers.dev/mcp` (no key).