Skill Tracer
Skills › Scientific Agent Skills › database-lookup › bea.md

bea.md

411 lines · skills/database-lookup/references/bea.md at 5f2bc03

Open on GitHub
1# BEA (Bureau of Economic Analysis) API Reference
2

BEA (Bureau of Economic Analysis) API Reference

Raw lines 1 to 2
3## Overview
4The Bureau of Economic Analysis API provides access to U.S. economic accounts data including GDP (national income and product accounts -- NIPA), personal income, international trade, industry accounts, and regional economic data. Structured as a single endpoint with dataset-specific parameters.
5

Overview

The Bureau of Economic Analysis API provides access to U.S. economic accounts data including GDP (national income and product accounts -- NIPA), personal income, international trade, industry accounts, and regional economic data. Structured as a single endpoint with dataset-specific parameters.

Raw lines 3 to 5
6## Base URL
7```
8https://apps.bea.gov/api/data
9```

Base URL

https://apps.bea.gov/api/data
Raw lines 6 to 10
11## Authentication
12- **API Key: REQUIRED.** Register at https://apps.bea.gov/API/signup/
13- Pass as query parameter: `&UserID=YOUR_API_KEY`

Authentication

  • API Key: REQUIRED. Register at https://apps.bea.gov/API/signup/
  • Pass as query parameter: &UserID=YOUR_API_KEY
Raw lines 11 to 14
15## Rate Limits
16- **100 requests per minute** per API key.
17- **100 MB of data per minute** per API key.
18- **30 errors per minute** -- exceeding triggers a temporary lockout.
19- Daily and monthly limits are not formally published but BEA may throttle heavy use.

Rate Limits

  • 100 requests per minute per API key.
  • 100 MB of data per minute per API key.
  • 30 errors per minute -- exceeding triggers a temporary lockout.
  • Daily and monthly limits are not formally published but BEA may throttle heavy use.
Raw lines 15 to 20
21## Common Parameters (all requests)
22| Parameter | Type | Required | Description |
23|-----------|--------|----------|-------------|
24| `UserID` | string | Yes | Your BEA API key. |
25| `method` | string | Yes | API method (see below). |
26| `ResultFormat` | string | No | `JSON` (default) or `XML`. |
28---

Common Parameters (all requests)

ParameterTypeRequiredDescription
UserIDstringYesYour BEA API key.
methodstringYesAPI method (see below).
ResultFormatstringNoJSON (default) or XML.

Raw lines 21 to 29
30## Methods
32### 1. GetDataSetList
33Lists all available datasets.
35#### `GET /api/data?method=GetDataSetList&UserID=YOUR_KEY&ResultFormat=JSON`
37**Example:**
38```
39https://apps.bea.gov/api/data?method=GetDataSetList&UserID=YOUR_KEY&ResultFormat=JSON
40```
42**Response:**
43```json
45 "BEAAPI": {
46 "Request": {
47 "RequestParam": [
48 {"ParameterName": "METHOD", "ParameterValue": "GETDATASETLIST"},
49 {"ParameterName": "RESULTFORMAT", "ParameterValue": "JSON"}
50 ]
51 },
52 "Results": {
53 "Dataset": [
54 {"DatasetName": "NIPA", "DatasetDescription": "Standard NIPA tables"},
55 {"DatasetName": "NIUnderlyingDetail", "DatasetDescription": "National Income and Product Accounts Underlying Detail"},
56 {"DatasetName": "MNE", "DatasetDescription": "Multinational Enterprises"},
57 {"DatasetName": "FixedAssets", "DatasetDescription": "Fixed Assets"},
58 {"DatasetName": "ITA", "DatasetDescription": "International Transactions"},
59 {"DatasetName": "IIP", "DatasetDescription": "International Investment Position"},
60 {"DatasetName": "GDPbyIndustry", "DatasetDescription": "GDP by Industry"},
61 {"DatasetName": "Regional", "DatasetDescription": "Regional data"},
62 {"DatasetName": "UnderlyingGDPbyIndustry", "DatasetDescription": "Underlying GDP by Industry"},
63 {"DatasetName": "InputOutput", "DatasetDescription": "Input-Output Statistics"}
64 ]
65 }
66 }
68```
70---

1. GetDataSetList

Lists all available datasets.

GET /api/data?method=GetDataSetList&UserID=YOUR_KEY&ResultFormat=JSON

Example:

https://apps.bea.gov/api/data?method=GetDataSetList&UserID=YOUR_KEY&ResultFormat=JSON

Response:

{
  "BEAAPI": {
    "Request": {
      "RequestParam": [
        {"ParameterName": "METHOD", "ParameterValue": "GETDATASETLIST"},
        {"ParameterName": "RESULTFORMAT", "ParameterValue": "JSON"}
      ]
    },
    "Results": {
      "Dataset": [
        {"DatasetName": "NIPA", "DatasetDescription": "Standard NIPA tables"},
        {"DatasetName": "NIUnderlyingDetail", "DatasetDescription": "National Income and Product Accounts Underlying Detail"},
        {"DatasetName": "MNE", "DatasetDescription": "Multinational Enterprises"},
        {"DatasetName": "FixedAssets", "DatasetDescription": "Fixed Assets"},
        {"DatasetName": "ITA", "DatasetDescription": "International Transactions"},
        {"DatasetName": "IIP", "DatasetDescription": "International Investment Position"},
        {"DatasetName": "GDPbyIndustry", "DatasetDescription": "GDP by Industry"},
        {"DatasetName": "Regional", "DatasetDescription": "Regional data"},
        {"DatasetName": "UnderlyingGDPbyIndustry", "DatasetDescription": "Underlying GDP by Industry"},
        {"DatasetName": "InputOutput", "DatasetDescription": "Input-Output Statistics"}
      ]
    }
  }
}

Raw lines 32 to 71
72### 2. GetParameterList
73Lists parameters for a specific dataset.
75#### `GET /api/data?method=GetParameterList&DatasetName={dataset}&UserID=YOUR_KEY&ResultFormat=JSON`
77**Example:**
78```
79https://apps.bea.gov/api/data?method=GetParameterList&DatasetName=NIPA&UserID=YOUR_KEY&ResultFormat=JSON
80```
82**Response:**
83```json
85 "BEAAPI": {
86 "Results": {
87 "Parameter": [
88 {
89 "ParameterName": "TableName",
90 "ParameterDataType": "string",
91 "ParameterDescription": "The standard NIPA table identifier",
92 "ParameterIsRequiredFlag": "1",
93 "ParameterDefaultValue": ""
94 },
95 {
96 "ParameterName": "Frequency",
97 "ParameterDataType": "string",
98 "ParameterDescription": "A - Annual, Q - Quarterly, M - Monthly",
99 "ParameterIsRequiredFlag": "1",
100 "ParameterDefaultValue": ""
101 },
102 {
103 "ParameterName": "Year",
104 "ParameterDataType": "string",
105 "ParameterDescription": "List of year(s) of data to retrieve",
106 "ParameterIsRequiredFlag": "1",
107 "ParameterDefaultValue": ""
108 }
109 ]
110 }
111 }
113```
115---

2. GetParameterList

Lists parameters for a specific dataset.

GET /api/data?method=GetParameterList&DatasetName={dataset}&UserID=YOUR_KEY&ResultFormat=JSON

Example:

https://apps.bea.gov/api/data?method=GetParameterList&DatasetName=NIPA&UserID=YOUR_KEY&ResultFormat=JSON

Response:

{
  "BEAAPI": {
    "Results": {
      "Parameter": [
        {
          "ParameterName": "TableName",
          "ParameterDataType": "string",
          "ParameterDescription": "The standard NIPA table identifier",
          "ParameterIsRequiredFlag": "1",
          "ParameterDefaultValue": ""
        },
        {
          "ParameterName": "Frequency",
          "ParameterDataType": "string",
          "ParameterDescription": "A - Annual, Q - Quarterly, M - Monthly",
          "ParameterIsRequiredFlag": "1",
          "ParameterDefaultValue": ""
        },
        {
          "ParameterName": "Year",
          "ParameterDataType": "string",
          "ParameterDescription": "List of year(s) of data to retrieve",
          "ParameterIsRequiredFlag": "1",
          "ParameterDefaultValue": ""
        }
      ]
    }
  }
}

Raw lines 72 to 116
117### 3. GetParameterValues
118Lists valid values for a parameter.
120#### `GET /api/data?method=GetParameterValues&DatasetName={dataset}&ParameterName={param}&UserID=YOUR_KEY&ResultFormat=JSON`
122**Example (list NIPA tables):**
123```
124https://apps.bea.gov/api/data?method=GetParameterValues&DatasetName=NIPA&ParameterName=TableName&UserID=YOUR_KEY&ResultFormat=JSON
125```
127**Response (abbreviated):**
128```json
130 "BEAAPI": {
131 "Results": {
132 "ParamValue": [
133 {"TableName": "T10101", "Description": "Table 1.1.1. Percent Change From Preceding Period in Real Gross Domestic Product"},
134 {"TableName": "T10106", "Description": "Table 1.1.6. Real Gross Domestic Product, Chained Dollars"},
135 {"TableName": "T10105", "Description": "Table 1.1.5. Gross Domestic Product"},
136 {"TableName": "T20100", "Description": "Table 2.1. Personal Income and Its Disposition"},
137 {"TableName": "T30100", "Description": "Table 3.1. Government Current Receipts and Expenditures"}
138 ]
139 }
140 }
142```
144---

3. GetParameterValues

Lists valid values for a parameter.

GET /api/data?method=GetParameterValues&DatasetName={dataset}&ParameterName={param}&UserID=YOUR_KEY&ResultFormat=JSON

Example (list NIPA tables):

https://apps.bea.gov/api/data?method=GetParameterValues&DatasetName=NIPA&ParameterName=TableName&UserID=YOUR_KEY&ResultFormat=JSON

Response (abbreviated):

{
  "BEAAPI": {
    "Results": {
      "ParamValue": [
        {"TableName": "T10101", "Description": "Table 1.1.1. Percent Change From Preceding Period in Real Gross Domestic Product"},
        {"TableName": "T10106", "Description": "Table 1.1.6. Real Gross Domestic Product, Chained Dollars"},
        {"TableName": "T10105", "Description": "Table 1.1.5. Gross Domestic Product"},
        {"TableName": "T20100", "Description": "Table 2.1. Personal Income and Its Disposition"},
        {"TableName": "T30100", "Description": "Table 3.1. Government Current Receipts and Expenditures"}
      ]
    }
  }
}

Raw lines 117 to 145
146### 4. GetData
147The main data retrieval method. Parameters vary by dataset.
149#### `GET /api/data?method=GetData&DatasetName={dataset}&{params}&UserID=YOUR_KEY&ResultFormat=JSON`
151---

4. GetData

The main data retrieval method. Parameters vary by dataset.

GET /api/data?method=GetData&DatasetName={dataset}&{params}&UserID=YOUR_KEY&ResultFormat=JSON


Raw lines 146 to 152
153## Dataset-Specific Parameters & Examples

Dataset-Specific Parameters & Examples

Raw lines 153 to 154
155### A. NIPA (National Income and Product Accounts)
157**Parameters:**
158| Parameter | Type | Required | Description |
159|------------|--------|----------|-------------|
160| `TableName`| string | Yes | NIPA table identifier (e.g., `T10101`). |
161| `Frequency`| string | Yes | `A` (annual), `Q` (quarterly), `M` (monthly). |
162| `Year` | string | Yes | Comma-separated years, or `ALL`/`X` for all years; prefer an explicit bounded range. |
164**Example (Real GDP percent change, quarterly, 2022-2024):**
165```
166https://apps.bea.gov/api/data?method=GetData&DatasetName=NIPA&TableName=T10101&Frequency=Q&Year=2022,2023,2024&UserID=YOUR_KEY&ResultFormat=JSON
167```
169**Example (GDP levels, annual, all years):**
170```
171https://apps.bea.gov/api/data?method=GetData&DatasetName=NIPA&TableName=T10105&Frequency=A&Year=ALL&UserID=YOUR_KEY&ResultFormat=JSON
172```
174**Response:**
175```json
177 "BEAAPI": {
178 "Request": { ... },
179 "Results": {
180 "Statistic": "NIPA Table",
181 "UTCProductionTime": "2024-11-01T13:00:00.000",
182 "Dimensions": [
183 {"Name": "TableName", "DataType": "string", "IsValue": "0"},
184 {"Name": "SeriesCode", "DataType": "string", "IsValue": "0"},
185 {"Name": "LineNumber", "DataType": "numeric", "IsValue": "0"},
186 {"Name": "LineDescription", "DataType": "string", "IsValue": "0"},
187 {"Name": "TimePeriod", "DataType": "string", "IsValue": "0"},
188 {"Name": "METRIC_NAME", "DataType": "string", "IsValue": "0"},
189 {"Name": "CL_UNIT", "DataType": "string", "IsValue": "0"},
190 {"Name": "UNIT_MULT", "DataType": "numeric", "IsValue": "0"},
191 {"Name": "DataValue", "DataType": "numeric", "IsValue": "1"}
192 ],
193 "Data": [
194 {
195 "TableName": "T10101",
196 "SeriesCode": "A191RL",
197 "LineNumber": "1",
198 "LineDescription": "Gross domestic product",
199 "TimePeriod": "2022Q1",
200 "METRIC_NAME": "Fisher Quantity Index",
201 "CL_UNIT": "Percent change",
202 "UNIT_MULT": "0",
203 "DataValue": "-1.6",
204 "NoteRef": "T10101"
205 },
206 {
207 "TableName": "T10101",
208 "SeriesCode": "A191RL",
209 "LineNumber": "1",
210 "LineDescription": "Gross domestic product",
211 "TimePeriod": "2022Q2",
212 "CL_UNIT": "Percent change",
213 "DataValue": "-0.6"
214 }
215 ],
216 "Notes": [
217 {"NoteRef": "T10101", "NoteText": "Table 1.1.1. Percent Change From Preceding Period..."}
218 ]
219 }
220 }
222```
224---

A. NIPA (National Income and Product Accounts)

Parameters:

ParameterTypeRequiredDescription
TableNamestringYesNIPA table identifier (e.g., T10101).
FrequencystringYesA (annual), Q (quarterly), M (monthly).
YearstringYesComma-separated years, or ALL/X for all years; prefer an explicit bounded range.

Example (Real GDP percent change, quarterly, 2022-2024):

https://apps.bea.gov/api/data?method=GetData&DatasetName=NIPA&TableName=T10101&Frequency=Q&Year=2022,2023,2024&UserID=YOUR_KEY&ResultFormat=JSON

Example (GDP levels, annual, all years):

https://apps.bea.gov/api/data?method=GetData&DatasetName=NIPA&TableName=T10105&Frequency=A&Year=ALL&UserID=YOUR_KEY&ResultFormat=JSON

Response:

{
  "BEAAPI": {
    "Request": { ... },
    "Results": {
      "Statistic": "NIPA Table",
      "UTCProductionTime": "2024-11-01T13:00:00.000",
      "Dimensions": [
        {"Name": "TableName", "DataType": "string", "IsValue": "0"},
        {"Name": "SeriesCode", "DataType": "string", "IsValue": "0"},
        {"Name": "LineNumber", "DataType": "numeric", "IsValue": "0"},
        {"Name": "LineDescription", "DataType": "string", "IsValue": "0"},
        {"Name": "TimePeriod", "DataType": "string", "IsValue": "0"},
        {"Name": "METRIC_NAME", "DataType": "string", "IsValue": "0"},
        {"Name": "CL_UNIT", "DataType": "string", "IsValue": "0"},
        {"Name": "UNIT_MULT", "DataType": "numeric", "IsValue": "0"},
        {"Name": "DataValue", "DataType": "numeric", "IsValue": "1"}
      ],
      "Data": [
        {
          "TableName": "T10101",
          "SeriesCode": "A191RL",
          "LineNumber": "1",
          "LineDescription": "Gross domestic product",
          "TimePeriod": "2022Q1",
          "METRIC_NAME": "Fisher Quantity Index",
          "CL_UNIT": "Percent change",
          "UNIT_MULT": "0",
          "DataValue": "-1.6",
          "NoteRef": "T10101"
        },
        {
          "TableName": "T10101",
          "SeriesCode": "A191RL",
          "LineNumber": "1",
          "LineDescription": "Gross domestic product",
          "TimePeriod": "2022Q2",
          "CL_UNIT": "Percent change",
          "DataValue": "-0.6"
        }
      ],
      "Notes": [
        {"NoteRef": "T10101", "NoteText": "Table 1.1.1. Percent Change From Preceding Period..."}
      ]
    }
  }
}

Raw lines 155 to 225
226### B. Regional (State, County, MSA data)
228**Parameters:**
229| Parameter | Type | Required | Description |
230|--------------|--------|----------|-------------|
231| `TableName` | string | Yes | Regional table (e.g., `CAGDP1` for GDP by county and metropolitan area). |
232| `LineCode` | int | Yes | Line number within the table (specifies the data series). |
233| `GeoFips` | string | Yes | FIPS code: `STATE` (all states), `COUNTY` (all counties), `MSA` (all MSAs), or specific FIPS (e.g., `06000` for California). |
234| `Year` | string | Yes | Comma-separated years or `ALL` or `LAST5`. |
236**Common Regional Tables:**
237| Table | Description |
238|-------|-------------|
239| `CAGDP1` | GDP summary by county/metropolitan area |
240| `CAGDP2` | GDP by county/metropolitan area; check current table description |
241| `CAGDP9` | Real GDP by county/metropolitan area |
242| `CAINC1` | Personal income summary by state |
243| `CAINC4` | Personal income and employment by state |
244| `CAINC5N` | Personal income by type by state |
245| `SAINC1` | State annual personal income |
246| `SQINC1` | State quarterly personal income |
248**Example (GDP by state, all states, 2020-2023):**
249```
250https://apps.bea.gov/api/data?method=GetData&DatasetName=Regional&TableName=CAGDP1&LineCode=1&GeoFips=STATE&Year=2020,2021,2022,2023&UserID=YOUR_KEY&ResultFormat=JSON
251```
253**Example (Personal income for California):**
254```
255https://apps.bea.gov/api/data?method=GetData&DatasetName=Regional&TableName=CAINC1&LineCode=1&GeoFips=06000&Year=LAST5&UserID=YOUR_KEY&ResultFormat=JSON
256```
258**Response:**
259```json
261 "BEAAPI": {
262 "Results": {
263 "Data": [
264 {
265 "GeoFips": "06000",
266 "GeoName": "California",
267 "Code": "CAINC1-1",
268 "TimePeriod": "2023",
269 "CL_UNIT": "Thousands of dollars",
270 "UNIT_MULT": "3",
271 "DataValue": "3,220,965,123"
272 }
273 ]
274 }
275 }
277```
279---

B. Regional (State, County, MSA data)

Parameters:

ParameterTypeRequiredDescription
TableNamestringYesRegional table (e.g., CAGDP1 for GDP by county and metropolitan area).
LineCodeintYesLine number within the table (specifies the data series).
GeoFipsstringYesFIPS code: STATE (all states), COUNTY (all counties), MSA (all MSAs), or specific FIPS (e.g., 06000 for California).
YearstringYesComma-separated years or ALL or LAST5.

Common Regional Tables:

TableDescription
CAGDP1GDP summary by county/metropolitan area
CAGDP2GDP by county/metropolitan area; check current table description
CAGDP9Real GDP by county/metropolitan area
CAINC1Personal income summary by state
CAINC4Personal income and employment by state
CAINC5NPersonal income by type by state
SAINC1State annual personal income
SQINC1State quarterly personal income

Example (GDP by state, all states, 2020-2023):

https://apps.bea.gov/api/data?method=GetData&DatasetName=Regional&TableName=CAGDP1&LineCode=1&GeoFips=STATE&Year=2020,2021,2022,2023&UserID=YOUR_KEY&ResultFormat=JSON

Example (Personal income for California):

https://apps.bea.gov/api/data?method=GetData&DatasetName=Regional&TableName=CAINC1&LineCode=1&GeoFips=06000&Year=LAST5&UserID=YOUR_KEY&ResultFormat=JSON

Response:

{
  "BEAAPI": {
    "Results": {
      "Data": [
        {
          "GeoFips": "06000",
          "GeoName": "California",
          "Code": "CAINC1-1",
          "TimePeriod": "2023",
          "CL_UNIT": "Thousands of dollars",
          "UNIT_MULT": "3",
          "DataValue": "3,220,965,123"
        }
      ]
    }
  }
}

Raw lines 226 to 280
281### C. ITA (International Transactions Accounts / Trade)
283**Parameters:**
284| Parameter | Type | Required | Description |
285|-------------|--------|----------|-------------|
286| `Indicator` | string | Yes | Indicator code (e.g., `BalGds` for goods balance). |
287| `AreaOrCountry` | string | Yes | Country code: `AllCountries`, `China`, `Japan`, etc., or `All`. |
288| `Frequency` | string | Yes | `A`, `Q`, `M`. |
289| `Year` | string | Yes | Comma-separated years or `ALL`. |
291**Common ITA Indicators:**
292| Code | Description |
293|------|-------------|
294| `BalGds` | Balance on goods |
295| `BalServ` | Balance on services |
296| `BalGdsServ` | Balance on goods and services |
297| `BalCurAcct` | Current account balance |
298| `ExpGds` | Exports of goods |
299| `ImpGds` | Imports of goods |
300| `ExpServ` | Exports of services |
301| `ImpServ` | Imports of services |
303**Example (US trade balance in goods with China, quarterly):**
304```
305https://apps.bea.gov/api/data?method=GetData&DatasetName=ITA&Indicator=BalGds&AreaOrCountry=China&Frequency=Q&Year=2022,2023,2024&UserID=YOUR_KEY&ResultFormat=JSON
306```
308---

C. ITA (International Transactions Accounts / Trade)

Parameters:

ParameterTypeRequiredDescription
IndicatorstringYesIndicator code (e.g., BalGds for goods balance).
AreaOrCountrystringYesCountry code: AllCountries, China, Japan, etc., or All.
FrequencystringYesA, Q, M.
YearstringYesComma-separated years or ALL.

Common ITA Indicators:

CodeDescription
BalGdsBalance on goods
BalServBalance on services
BalGdsServBalance on goods and services
BalCurAcctCurrent account balance
ExpGdsExports of goods
ImpGdsImports of goods
ExpServExports of services
ImpServImports of services

Example (US trade balance in goods with China, quarterly):

https://apps.bea.gov/api/data?method=GetData&DatasetName=ITA&Indicator=BalGds&AreaOrCountry=China&Frequency=Q&Year=2022,2023,2024&UserID=YOUR_KEY&ResultFormat=JSON

Raw lines 281 to 309
310### D. GDPbyIndustry
312**Parameters:**
313| Parameter | Type | Required | Description |
314|-------------|--------|----------|-------------|
315| `TableID` | int | Yes | Table number (1-15). |
316| `Industry` | string | Yes | Industry code: `ALL`, or specific (e.g., `11` for agriculture). |
317| `Frequency` | string | Yes | `A` or `Q`. |
318| `Year` | string | Yes | Comma-separated years or `ALL`. |
320**Common Table IDs:**
321| ID | Description |
322|----|-------------|
323| 1 | Value added by industry |
324| 5 | Value added by industry as % of GDP |
325| 6 | Real value added by industry |
326| 7 | Percent change in real value added by industry |
328**Example (Value added by all industries, annual):**
329```
330https://apps.bea.gov/api/data?method=GetData&DatasetName=GDPbyIndustry&TableID=1&Industry=ALL&Frequency=A&Year=2020,2021,2022,2023&UserID=YOUR_KEY&ResultFormat=JSON
331```
333---

D. GDPbyIndustry

Parameters:

ParameterTypeRequiredDescription
TableIDintYesTable number (1-15).
IndustrystringYesIndustry code: ALL, or specific (e.g., 11 for agriculture).
FrequencystringYesA or Q.
YearstringYesComma-separated years or ALL.

Common Table IDs:

IDDescription
1Value added by industry
5Value added by industry as % of GDP
6Real value added by industry
7Percent change in real value added by industry

Example (Value added by all industries, annual):

https://apps.bea.gov/api/data?method=GetData&DatasetName=GDPbyIndustry&TableID=1&Industry=ALL&Frequency=A&Year=2020,2021,2022,2023&UserID=YOUR_KEY&ResultFormat=JSON

Raw lines 310 to 334
335### E. IIP (International Investment Position)
337**Parameters:**
338| Parameter | Type | Required | Description |
339|----------------|--------|----------|-------------|
340| `TypeOfInvestment` | string | Yes | `ALL`, `FinAssetsExclFinDeriv`, etc. |
341| `Component` | string | Yes | `ALL` or specific component. |
342| `Frequency` | string | Yes | `A` or `Q`. |
343| `Year` | string | Yes | Comma-separated years or `ALL`. |
345**Example:**
346```
347https://apps.bea.gov/api/data?method=GetData&DatasetName=IIP&TypeOfInvestment=ALL&Component=ALL&Frequency=A&Year=2020,2021,2022,2023&UserID=YOUR_KEY&ResultFormat=JSON
348```
350---

E. IIP (International Investment Position)

Parameters:

ParameterTypeRequiredDescription
TypeOfInvestmentstringYesALL, FinAssetsExclFinDeriv, etc.
ComponentstringYesALL or specific component.
FrequencystringYesA or Q.
YearstringYesComma-separated years or ALL.

Example:

https://apps.bea.gov/api/data?method=GetData&DatasetName=IIP&TypeOfInvestment=ALL&Component=ALL&Frequency=A&Year=2020,2021,2022,2023&UserID=YOUR_KEY&ResultFormat=JSON

Raw lines 335 to 351
352### F. FixedAssets
354**Parameters:**
355| Parameter | Type | Required | Description |
356|------------|--------|----------|-------------|
357| `TableName`| string | Yes | Fixed asset table ID. |
358| `Year` | string | Yes | Comma-separated years or `ALL`. |
360**Example:**
361```
362https://apps.bea.gov/api/data?method=GetData&DatasetName=FixedAssets&TableName=FAAt101&Year=ALL&UserID=YOUR_KEY&ResultFormat=JSON
363```
365---

F. FixedAssets

Parameters:

ParameterTypeRequiredDescription
TableNamestringYesFixed asset table ID.
YearstringYesComma-separated years or ALL.

Example:

https://apps.bea.gov/api/data?method=GetData&DatasetName=FixedAssets&TableName=FAAt101&Year=ALL&UserID=YOUR_KEY&ResultFormat=JSON

Raw lines 352 to 366
367## Key NIPA Table Reference
369| TableName | Description |
370|-----------|-------------|
371| `T10101` | Percent change in real GDP |
372| `T10105` | GDP (current dollars) |
373| `T10106` | Real GDP (chained 2017 dollars) |
374| `T10107` | Percent change in prices for GDP |
375| `T10110` | GDP price deflator |
376| `T20100` | Personal income and its disposition |
377| `T20301` | Personal consumption expenditures by type |
378| `T20600` | Personal income and outlays |
379| `T30100` | Government current receipts and expenditures |
380| `T40100` | Foreign transactions in the national accounts |
381| `T50100` | Saving and investment by sector |
382| `T50105` | Saving and investment (real) |
383| `T60100` | Corporate profits |
384| `T70100` | GDP by major type of product |
385| `T11000` | Real GDP, expanded detail |
386| `T11200` | Contributions to GDP growth |

Key NIPA Table Reference

TableNameDescription
T10101Percent change in real GDP
T10105GDP (current dollars)
T10106Real GDP (chained 2017 dollars)
T10107Percent change in prices for GDP
T10110GDP price deflator
T20100Personal income and its disposition
T20301Personal consumption expenditures by type
T20600Personal income and outlays
T30100Government current receipts and expenditures
T40100Foreign transactions in the national accounts
T50100Saving and investment by sector
T50105Saving and investment (real)
T60100Corporate profits
T70100GDP by major type of product
T11000Real GDP, expanded detail
T11200Contributions to GDP growth
Raw lines 367 to 387
388## GeoFips Reference (Common)
389| FIPS | State |
390|------|-------|
391| `00000` | United States |
392| `01000` | Alabama |
393| `06000` | California |
394| `12000` | Florida |
395| `36000` | New York |
396| `48000` | Texas |
397| `STATE` | All states |
398| `COUNTY` | All counties |
399| `MSA` | All metropolitan statistical areas |

GeoFips Reference (Common)

FIPSState
00000United States
01000Alabama
06000California
12000Florida
36000New York
48000Texas
STATEAll states
COUNTYAll counties
MSAAll metropolitan statistical areas
Raw lines 388 to 400
401## Notes
402- DataValue in responses is a string, sometimes with commas (e.g., `"3,220,965,123"`). Parse by removing commas.
403- `Year=X` returns only the most recent year available.
404- `Year=LAST5` returns the 5 most recent years.
405- For NIPA tables, results contain multiple line items per table (different GDP components are different LineNumbers).
406- The `GetParameterValues` method is essential for discovering valid table names, line codes, and indicator codes for each dataset.
407- BEA also provides bulk download files at https://apps.bea.gov/iTable/ for interactive use.
408- Time periods for quarterly data use format `2024Q1`, `2024Q2`, etc.
409- All monetary values are in U.S. dollars unless otherwise specified. Units are indicated in `CL_UNIT` and `UNIT_MULT` fields.
411Use `GetParameterValues` for current table/line labels and `GetParameterValuesFiltered` for valid combinations; special year values are dataset-specific. State GDP tables use the `SAGDP` family. Source: https://apps.bea.gov/api/_pdf/bea_web_service_api_user_guide.pdf

Notes

  • DataValue in responses is a string, sometimes with commas (e.g., "3,220,965,123"). Parse by removing commas.
  • Year=X returns only the most recent year available.
  • Year=LAST5 returns the 5 most recent years.
  • For NIPA tables, results contain multiple line items per table (different GDP components are different LineNumbers).
  • The GetParameterValues method is essential for discovering valid table names, line codes, and indicator codes for each dataset.
  • BEA also provides bulk download files at https://apps.bea.gov/iTable/ for interactive use.
  • Time periods for quarterly data use format 2024Q1, 2024Q2, etc.
  • All monetary values are in U.S. dollars unless otherwise specified. Units are indicated in CL_UNIT and UNIT_MULT fields.

Use GetParameterValues for current table/line labels and GetParameterValuesFiltered for valid combinations; special year values are dataset-specific. State GDP tables use the SAGDP family. Source: https://apps.bea.gov/api/_pdf/bea_web_service_api_user_guide.pdf

Raw lines 401 to 411