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

# BEA

> Bureau of Economic Analysis API providing U.S.

Bureau of Economic Analysis API providing U.S. GDP, personal income, international trade, and regional economic data from the National Income and Product Accounts (NIPA). Best for macroeconomic analysis needing national accounts data, GDP breakdowns, or trade balance tracking. The official source for U.S. economic output measurement — complementary to BLS (labor/prices) and Census (demographics).

1 example endpoint available through Lava's AI Gateway. See the [BEA API docs](https://apps.bea.gov/api/signup/) for full documentation.

<Info>This provider is **managed** — no additional setup required.</Info>

<Info>This is a **catch-all provider** — any valid URL under `https://apps.bea.gov/api` is supported. BEA economic statistics API. Construct URL as [https://apps.bea.gov/api/\&#123;endpoint\&#125](https://apps.bea.gov/api/\&#123;endpoint\&#125);. Primary endpoint: /data?method=getdata\&datasetname=NIPA\&TableName=T10101\&Frequency=Q\&Year=2024. Auth params (UserID, ResultFormat) are added automatically. The endpoints below are curated examples.</Info>

## Endpoints

### Get NIPA table data

**GET** `https://apps.bea.gov/api/data?&method=getdata&datasetname=NIPA&TableName=T10101&Frequency=Q&Year=2024&ResultFormat=JSON` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://apps.bea.gov/api/data?&method=getdata&datasetname=NIPA&TableName=T10101&Frequency=Q&Year=2024&ResultFormat=JSON', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapps.bea.gov%2Fapi%2Fdata%3F%26method%3Dgetdata%26datasetname%3DNIPA%26TableName%3DT10101%26Frequency%3DQ%26Year%3D2024%26ResultFormat%3DJSON" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
