Skip to content

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 ​

ParameterTypeDescription
opts{ frequency?: string; industry?: string; tableId?: string; year?: string; }-
opts.frequency?stringA=annual or Q=quarterly (not all tables support quarterly).
opts.industry?stringNAICS code ("11", "21") or "ALL".
opts.tableId?stringTable ID ("1", "5", "25") or "ALL". See gdpIndustryTables in types.ts.
opts.year?stringComma-separated years or "ALL". Defaults to last 3 complete years.

Returns ​

Promise<BeaIndustryGdpResult>

Released under the MIT License.