> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# US Bureau of Economic Analysis

> BEA economic statistics through one data API; this entry names the dataset discovery calls and the Regional accounts (state, county and metro personal income, employment and GDP).

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/bea.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=ade114743e3435156e0afe711fb2a70a)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

Needs&#x20;

`BEA_API_KEY`

Endpoints

5

Auth

Key in query

[Vendor docs](https://apps.bea.gov/api/_pdf/bea_web_service_api_user_guide.pdf)

## Setup

| Variable | | What it is |
| - | - | - |
| `BEA_API_KEY` | required | The free 36-character BEA UserID from apps.bea.gov/api/signup (a disposable email is refused). Sent as the UserID query parameter. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Every call is a GET to /data with a method parameter; each endpoint here fixes its method.
* Limits per user per minute: 100 requests, 100 MB of data and 30 errors; going over locks the key out for about a minute.
* Discover before fetching: parameters.list for a dataset, then parameter.values or parameter.values-filtered for valid TableName, LineCode and Year values.
* Regional GeoFips takes codes or STATE, COUNTY, MSA; Year defaults to LAST5 and takes a list, LAST10 or ALL.

## Endpoints

GET

List datasets

Every dataset the API offers, with descriptions.

[Open](#bea-datasets-list)

GET

List a dataset's parameters

Parameters of one dataset: type, whether required, default and whether lists are accepted.

[Open](#bea-parameters-list)

GET

List values of a parameter

Valid values of one parameter of a dataset, e.g. every Regional TableName.

[Open](#bea-parameter-values)

GET

List values of a parameter given others

Valid values of one target parameter given other parameters, e.g. LineCodes of a table or Years of a table and area.

[Open](#bea-parameter-values-filtered)

GET

Get regional economic data

Personal income, employment, GDP or price parities for states, counties or metro areas from one Regional table.

[Open](#bea-regional-data)

### List datasets

GET

`/data`

`bea.datasets.list`

Every dataset the API offers, with descriptions.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`method` required</td><td>string</td><td>query</td><td>Must be GETDATASETLIST. One of `GETDATASETLIST` Example `GETDATASETLIST`</td></tr>
    <tr><td>`ResultFormat`</td><td>string</td><td>query</td><td>JSON (default) or XML. One of `JSON`, `XML`</td></tr>
  </tbody>
</table>

[Vendor docs](https://apps.bea.gov/api/_pdf/bea_web_service_api_user_guide.pdf) · Same job: [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-groups-search), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-objects-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-lists), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-list), [Clay](https://docs.webrouter.net/data-apis/clay.md#clay-tables-query), [CMS Open Payments](https://docs.webrouter.net/data-apis/cms-open-payments.md#cms-open-payments-datasets-list)

```python Python theme={null}
router.call_data_api("bea.datasets.list", {'method': 'GETDATASETLIST'})
```

```text MCP theme={null}
call_data_api(endpoint="bea.datasets.list", params={"method": "GETDATASETLIST"})
```

### List a dataset's parameters

GET

`/data`

`bea.parameters.list`

Parameters of one dataset: type, whether required, default and whether lists are accepted.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`method` required</td><td>string</td><td>query</td><td>Must be GetParameterList. One of `GetParameterList` Example `GetParameterList`</td></tr>
    <tr><td>`datasetname` required</td><td>string</td><td>query</td><td>Dataset name, e.g. Regional or IntlServTrade; datasets.list gives all. Example `Regional`</td></tr>
    <tr><td>`ResultFormat`</td><td>string</td><td>query</td><td>JSON (default) or XML. One of `JSON`, `XML`</td></tr>
  </tbody>
</table>

[Vendor docs](https://apps.bea.gov/api/_pdf/bea_web_service_api_user_guide.pdf) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-companies-fields), [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-items-get), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-attributes-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-series-get), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-metadata), [CISA Known Exploited Vulnerabilities (KEV) catalog](https://docs.webrouter.net/data-apis/cisa-kev.md#cisa-kev-catalog-schema)

```python Python theme={null}
router.call_data_api("bea.parameters.list", {'method': 'GetParameterList', 'datasetname': 'Regional'})
```

```text MCP theme={null}
call_data_api(endpoint="bea.parameters.list", params={"method": "GetParameterList", "datasetname": "Regional"})
```

### List values of a parameter

GET

`/data`

`bea.parameter.values`

Valid values of one parameter of a dataset, e.g. every Regional TableName.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`method` required</td><td>string</td><td>query</td><td>Must be GetParameterValues. One of `GetParameterValues` Example `GetParameterValues`</td></tr>
    <tr><td>`datasetname` required</td><td>string</td><td>query</td><td>Dataset name, e.g. Regional or IntlServTrade; datasets.list gives all. Example `Regional`</td></tr>
    <tr><td>`ParameterName` required</td><td>string</td><td>query</td><td>Parameter to list. Example `TableName`</td></tr>
    <tr><td>`ResultFormat`</td><td>string</td><td>query</td><td>JSON (default) or XML. One of `JSON`, `XML`</td></tr>
  </tbody>
</table>

[Vendor docs](https://apps.bea.gov/api/_pdf/bea_web_service_api_user_guide.pdf) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-companies-fields), [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-items-get), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-attributes-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-series-get), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-metadata), [CISA Known Exploited Vulnerabilities (KEV) catalog](https://docs.webrouter.net/data-apis/cisa-kev.md#cisa-kev-catalog-schema)

```python Python theme={null}
router.call_data_api("bea.parameter.values", {'method': 'GetParameterValues', 'datasetname': 'Regional', 'ParameterName': 'TableName'})
```

```text MCP theme={null}
call_data_api(endpoint="bea.parameter.values", params={"method": "GetParameterValues", "datasetname": "Regional", "ParameterName": "TableName"})
```

### List values of a parameter given others

GET

`/data`

`bea.parameter.values-filtered`

Valid values of one target parameter given other parameters, e.g. LineCodes of a table or Years of a table and area.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`method` required</td><td>string</td><td>query</td><td>Must be GetParameterValuesFiltered. One of `GetParameterValuesFiltered` Example `GetParameterValuesFiltered`</td></tr>
    <tr><td>`datasetname` required</td><td>string</td><td>query</td><td>Dataset name, e.g. Regional or IntlServTrade; datasets.list gives all. Example `Regional`</td></tr>
    <tr><td>`TargetParameter` required</td><td>string</td><td>query</td><td>Parameter whose valid values are wanted. Example `LineCode`</td></tr>
    <tr><td>`TableName`</td><td>string</td><td>query</td><td>Table to filter on. Example `SAINC1`</td></tr>

    <tr>
      <td>
        `GeoFips`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Area to filter on.
      </td>
    </tr>

    <tr><td>`ResultFormat`</td><td>string</td><td>query</td><td>JSON (default) or XML. One of `JSON`, `XML`</td></tr>
  </tbody>
</table>

[Vendor docs](https://apps.bea.gov/api/_pdf/bea_web_service_api_user_guide.pdf) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-companies-fields), [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-items-get), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-attributes-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-series-get), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-metadata), [CISA Known Exploited Vulnerabilities (KEV) catalog](https://docs.webrouter.net/data-apis/cisa-kev.md#cisa-kev-catalog-schema)

```python Python theme={null}
router.call_data_api("bea.parameter.values-filtered", {'method': 'GetParameterValuesFiltered', 'datasetname': 'Regional', 'TargetParameter': 'LineCode', 'TableName': 'SAINC1'})
```

```text MCP theme={null}
call_data_api(endpoint="bea.parameter.values-filtered", params={"method": "GetParameterValuesFiltered", "datasetname": "Regional", "TargetParameter": "LineCode", "TableName": "SAINC1"})
```

> [!NOTE]
>
> * Not implemented for every dataset; unsupported ones answer with an error.

### Get regional economic data

GET

`/data`

`bea.regional.data`

Personal income, employment, GDP or price parities for states, counties or metro areas from one Regional table.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`method` required</td><td>string</td><td>query</td><td>Must be GetData. One of `GetData` Example `GetData`</td></tr>
    <tr><td>`datasetname` required</td><td>string</td><td>query</td><td>Must be Regional for this call. One of `Regional` Example `Regional`</td></tr>
    <tr><td>`TableName` required</td><td>string</td><td>query</td><td>One table, e.g. CAINC1 (county personal income summary), SAINC1, SAGDP2, CAGDP2, MARPP. Example `CAINC1`</td></tr>
    <tr><td>`LineCode` required</td><td>string</td><td>query</td><td>Line (statistic) in the table, or ALL for one area. Example `3`</td></tr>
    <tr><td>`GeoFips` required</td><td>string</td><td>query</td><td>FIPS codes (comma-separated), or STATE, COUNTY, MSA, TERR. Example `COUNTY`</td></tr>
    <tr><td>`Year`</td><td>string</td><td>query</td><td>Years comma-separated, or LAST5 (default), LAST10, ALL. Example `2022,2023`</td></tr>
    <tr><td>`ResultFormat`</td><td>string</td><td>query</td><td>JSON (default) or XML. One of `JSON`, `XML`</td></tr>
  </tbody>
</table>

[Vendor docs](https://apps.bea.gov/api/_pdf/bea_web_service_api_user_guide.pdf) · Same job: [Banco Central do Brasil (SGS)](https://docs.webrouter.net/data-apis/bcb.md#bcb-series-get), [Statistics Canada Web Data Service](https://docs.webrouter.net/data-apis/statcan.md#statcan-series-latest), [US Treasury Fiscal Data](https://docs.webrouter.net/data-apis/treasury-fiscal-data.md#treasury-fiscal-data-debt-to-penny), [UNESCO Institute for Statistics Data API](https://docs.webrouter.net/data-apis/unesco-uis.md#unesco-uis-indicators-data), [WHO Global Health Observatory](https://docs.webrouter.net/data-apis/who-gho.md#who-gho-indicator-data)

```python Python theme={null}
router.call_data_api("bea.regional.data", {'method': 'GetData', 'datasetname': 'Regional', 'TableName': 'CAINC1', 'LineCode': '3', 'GeoFips': 'COUNTY', 'Year': '2022,2023'})
```

```text MCP theme={null}
call_data_api(endpoint="bea.regional.data", params={"method": "GetData", "datasetname": "Regional", "TableName": "CAINC1", "LineCode": "3", "GeoFips": "COUNTY", "Year": "2022,2023"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.