get_migration_summary
Retrieve migration summary for a county or state: inflows, outflows, net migration, net exemptions, net AGI for a tax year pair.
Instructions
Retrieve migration summary for a county or state showing aggregate inflows, outflows, and net migration. Returns net returns (positive = net in-migration, negative = net out-migration), net exemptions (proxy for people), and net AGI (adjusted gross income in thousands of dollars). Year is specified as a year pair (e.g., '2021-2022') representing tax filing year transitions. Source: IRS Statistics of Income.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fips | Yes | FIPS code — 5 digits for county, 2 for state | |
| year | No | Year pair (e.g., '2021-2022'). Defaults to most recent available. | |
| level | Yes | Geographic level: county or state |