Look up a ZIP
lookup_zipCheck if a U.S. ZIP code has IRS SOI data, returning state, tax year, and counts of returns and individuals. Validate a ZIP before pulling more detailed stats.
Instructions
Confirm a ZIP has SOI data and return its return and individual counts.
`zip_code`: a 5-digit US ZIP. A good first call to validate a ZIP before
asking for more detail. Returns the state, number of returns, number of
individuals, and the SOI tax year. ZIPs with <100 returns are excluded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | 2-letter USPS state code | |
| returns | No | Total number of tax returns filed from this ZIP | |
| zipcode | Yes | 5-digit ZIP code | |
| tax_year | Yes | SOI tax year of the data | |
| individuals | No | Total number of individuals (filers plus dependents) |