Look up a ZIP
lookup_zipValidate a U.S. ZIP code against Census ZCTA boundaries to get its area name, total population, and ACS data vintage. Confirm ZIP validity before requesting detailed stats.
Instructions
Confirm a ZIP maps to a Census ZCTA and return its name and population.
`zip_code`: a 5-digit US ZIP. A good first call to validate a ZIP before
asking for more detail. Returns the ZCTA, Census area name, total population,
and the ACS data vintage. ZIP ≈ ZCTA; ~2% of ZIPs have no ZCTA and error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Census name for the area, e.g. 'ZCTA5 90069' | |
| zcta | Yes | 5-digit ZIP Code Tabulation Area | |
| vintage | Yes | ACS 5-year data vintage (end year) | |
| population | No | Total population (ACS 5-year estimate) |