Snapshot

Get World Bank snapshot data from API.

By series code

Get World Bank data by specific series code

/worldbank/indicator?s={series_code}

import tradingeconomics as te
te.login('your_api_key')

te.getWBIndicator(series_code = 'fr.inr.rinr')
const te = require('tradingeconomics');
te.login('your_api_key');

data = te.getworldbank(series_code = 'fr.inr.rinr').then(function(data){
  console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/worldbank/indicator?s=fr.inr.rinr&c=guest:guest");

By symbol

Get World Bank data by specific symbol

*Symbol is the result of concatenation between country ISO Alpha-3 code and series code.

/worldbank/indicator?s={symbol}

te.getWBIndicator(series_code = 'usa.fr.inr.rinr')
data = te.getworldbank(series_code = 'usa.fr.inr.rinr').then(function(data){
  console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/worldbank/indicator?s=usa.fr.inr.rinr&c=guest:guest");

By country

Get World Bank data by specific country

/worldbank/country/{country}

te.getWBCountry(country = 'Portugal')
data = te.getworldbank(country = 'Portugal').then(function(data){
  console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/worldbank/country/portugal?c=guest:guest");

By URL

Get World Bank data by specific URL

/worldbank/indicator?url={url}

te.getWBIndicator(url = '/united-states/real-interest-rate-percent-wb-data.html',
 )
data = te.getworldbank(URL = '/united-states/real-interest-rate-percent-wb-data.html').then(function(data){
  console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/worldbank/indicator?url=/united-states/real-interest-rate-percent-wb-data.html&c=guest:guest");

Response fields

FieldTypeDescriptionExample
SymbolstringSeries code or symbol“ABW.FR.INR.RINR”
LastnumberLatest released value12.22872
DatestringRelease time and date in UTC“2020-06-15T00:00:00”
PreviousnumberValue for the previous period after the revision (if revision is applicable)1.10675
PreviousDatestringRelease time and date in UTC of the previous value“2019-06-15T00:00:00”
CountrystringCountry name“Mexico”
CategorystringCategory name“Financial Sector”
DescriptionstringSnapshot description“Real interest rate (%)”
FrequencystringFrequency of the indicator“yearly”
UnitstringUnit of the data“%”
TitlestringWB Series title“Real interest rate”
URLstringHyperlink at Trading Economics“/aruba/real-interest-rate-percent-wb-data.html”
last_updatestringTime when new data was inserted or changed“2023-04-07T09:38:20.24”