Function: getGdpByIndustry() ​
ts
function getGdpByIndustry(opts?: {
frequency?: string;
industry?: string;
tableId?: string;
year?: string;
}): Promise<BeaIndustryGdpResult>;Defined in: bea/sdk.ts:404
Get GDP contribution by industry from BEA GDPbyIndustry dataset.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
opts | { frequency?: string; industry?: string; tableId?: string; year?: string; } | - |
opts.frequency? | string | A=annual or Q=quarterly (not all tables support quarterly). |
opts.industry? | string | NAICS code ("11", "21") or "ALL". |
opts.tableId? | string | Table ID ("1", "5", "25") or "ALL". See gdpIndustryTables in types.ts. |
opts.year? | string | Comma-separated years or "ALL". Defaults to last 3 complete years. |
Returns ​
Promise<BeaIndustryGdpResult>