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
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
Field | Type | Description | Example |
---|---|---|---|
Symbol | string | Series code or symbol | “ABW.FR.INR.RINR” |
Last | number | Latest released value | 12.22872 |
Date | string | Release time and date in UTC | “2020-06-15T00:00:00” |
Previous | number | Value for the previous period after the revision (if revision is applicable) | 1.10675 |
PreviousDate | string | Release time and date in UTC of the previous value | “2019-06-15T00:00:00” |
Country | string | Country name | “Mexico” |
Category | string | Category name | “Financial Sector” |
Description | string | Snapshot description | “Real interest rate (%)” |
Frequency | string | Frequency of the indicator | “yearly” |
Unit | string | Unit of the data | “%” |
Title | string | WB Series title | “Real interest rate” |
URL | string | Hyperlink at Trading Economics | “/aruba/real-interest-rate-percent-wb-data.html” |
last_update | string | Time when new data was inserted or changed | “2023-04-07T09:38:20.24” |