Compare ZIPs
compare_zipsCompare multiple ZIP codes by one metric, like income or age, and view results sorted from highest to lowest.
Instructions
Rank several ZIPs by a single metric, highest value first.
`zips`: a list of 5-digit US ZIPs to compare. `metric`: one of
`population`, `median_age`, `median_household_income`, `per_capita_income`,
`households_200k_plus_pct`, `median_home_value`, `median_gross_rent`,
`owner_occupied_pct`, `bachelors_plus_pct`, `graduate_or_professional_pct`.
Returns each ZIP's value, sorted descending; ZIPs with no data (suppressed
or no ZCTA) are listed last. All values are ACS 5-year estimates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zips | Yes | ||
| metric | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | Yes | The compared metric's name | |
| results | Yes | One entry per requested ZIP, sorted by value descending; ZIPs with no value are listed last | |
| vintage | Yes | ACS 5-year data vintage (end year) |