Get demographics by ZIP
get_demographicsRetrieve total population and median age for a U.S. ZIP code based on ACS 5-year estimates.
Instructions
Population and median age for a ZIP.
`zip_code`: a 5-digit US ZIP. Returns the total population and the median
age of residents — both ACS 5-year estimates. (Age-bracket breakdowns,
e.g. under-18 / 18-34 / 35-64 / 65+, are on the roadmap.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Census name for the area | |
| zcta | Yes | 5-digit ZIP Code Tabulation Area | |
| vintage | Yes | ACS 5-year data vintage (end year) | |
| median_age | No | Median age of the population, in years | |
| population | No | Total population (ACS 5-year estimate) |