bea_compare_states
Compare one official BEA SASUMMARY annual indicator across 2–8 requested states (or the United States) for an exact year. Returns values sorted high-to-low, exact unit, missing-value evidence, GeoFIPS, source hash, and attribution. Use this for 'compare 2024 Texas and California GDP', 'which of these states had higher 2023 per-capita income?', or 'compare regional price levels'. It does not rank all states unless they are explicitly supplied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | Four-digit calendar year. Hosted source coverage is reported in every response. | |
| indicator | Yes | Supported indicator slug/name or BEA SASUMMARY line code; examples: gdp, real_gdp, personal_income, per_capita_personal_income, regional_price_parities, total_employment. | |
| geographies | Yes | Two to eight distinct state selectors. | |
| response_format | No | Human-readable markdown or machine-readable JSON. Default markdown. |