getIndicatorData
chainalign-backend / services/worldBankService / getIndicatorData
Function: getIndicatorData()
getIndicatorData(
countryCode,indicatorKey,dateRange?):Promise<any[]>
Defined in: services/worldBankService.js:26
Fetches data for a specific World Bank indicator for a given country.
Parameters
countryCode
string
The 2-letter ISO country code (e.g., 'US', 'CN').
indicatorKey
string
The key from INDICATOR_MAP (e.g., 'GDP_GROWTH').
dateRange?
number = 5
Number of most recent years to fetch data for.
Returns
Promise<any[]>
- An array of data points for the indicator.