bea_gdp_by_state
Retrieve U.S. state GDP data from BEA Regional datasets to analyze economic performance across states, industries, and time periods.
Instructions
Get gross domestic product for U.S. states from BEA Regional dataset.
Table options:
SAGDP1: State annual GDP summary (default)
SAGDP9: Real GDP by state
SQGDP1: State quarterly GDP summary
GeoFips: 'STATE' for all states, or 5-digit FIPS (e.g. '06000' for CA)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | No | Regional table: 'SAGDP1' (annual GDP summary, default), 'SAGDP9' (real GDP), 'SQGDP1' (quarterly GDP summary) | |
| geo_fips | No | Geography: 'STATE' (all states, default), or state FIPS + '000' (e.g. '06000' for CA, '48000' for TX) | |
| line_code | No | Line code: '1' (all industry, default), '2' (private), '3' (government) | |
| year | No | Year(s): 'LAST5' (default), 'LAST10', 'ALL', or comma-separated years |