bea_gdp_by_state
Retrieve U.S. state GDP from the BEA Regional dataset. Select annual, real, or quarterly tables, specify state and year range, and obtain industry-level values.
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
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Year(s): 'LAST5' (default), 'LAST10', 'ALL', or comma-separated years | |
| 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) | |
| table_name | No | Regional table: 'SAGDP1' (annual GDP summary, default), 'SAGDP9' (real GDP), 'SQGDP1' (quarterly GDP summary) |