get_commute_flows
Retrieve county or state commute flows to see where workers come from (inbound) or where residents commute to (outbound), with job counts and industry breakdowns.
Instructions
Retrieve commute flow (origin-destination) data for a county or state. Shows where workers come from (inbound) or where residents commute to (outbound). Returns top flow pairs with job counts and a 3-supersector industry breakdown (Goods Producing, Trade/Transport/Utilities, All Other Services). Note: this uses OD data with a coarser industry breakdown than the 20-sector NAICS detail available in single-area employment summaries. Not available at the tract level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Data year. Omit to use the most recent available year. | |
| geoid | Yes | FIPS code — 5 digits for county, 2 for state. | |
| limit | No | Number of top flow pairs to return (1-100, default 25). | |
| min_jobs | No | Minimum job count threshold to include a flow pair (default 0). | |
| area_type | Yes | Geographic level: county or state (tract is not supported for flows). | |
| direction | Yes | inbound = where workers come from; outbound = where residents commute to. |