Skip to content
Docs
Get API key
World Bank

World Bank Snapshot of Latest Values

Use the following API endpoints to obtain World Bank snapshot data.

The Snapshot endpoint offers a momentary view of data, capturing specific information at a particular point in time. It generally includes details such as date, units, and general information, providing a static representation of current data.

By series code

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/worldbank/indicator?s=fr.inr.rinr&c={your_api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

Python
import tradingeconomics as te
te.login('your_api_key')
te.getWBIndicator(series_code = 'fr.inr.rinr')

The response data format can be configured by appending the &f= parameter to the URL request.

Text
https://api.tradingeconomics.com/worldbank/indicator?c={your_api_key}&s={series_code}&f=json
JSON
[
  {
    "symbol": "ABW.FR.INR.RINR",
    "last": 2.59848,
    "date": "2022-06-15T00:00:00",
    "previous": 11.98841,
    "previousDate": "2021-06-15T00:00:00",
    "country": "Aruba",
    "category": "Financial Sector",
    "description": "Real interest rate (%)",
    "frequency": "yearly",
    "unit": "%",
    "title": "Real interest rate ",
    "URL": "/aruba/real-interest-rate-percent-wb-data.html",
    "lastUpdate": "2024-03-21T08:06:54.167"
  },
  {
    "symbol": "AGO.FR.INR.RINR",
    "last": 3.27743,
    "date": "2022-06-15T00:00:00",
    "previous": -13.98937,
    "previousDate": "2021-06-15T00:00:00",
    "country": "Angola",
    "category": "Financial Sector",
    "description": "Real interest rate (%)",
    "frequency": "yearly",
    "unit": "%",
    "title": "Real interest rate ",
    "URL": "/angola/real-interest-rate-percent-wb-data.html",
    "lastUpdate": "2024-03-21T08:10:59.41"
  },
  {
    "symbol": "ALB.FR.INR.RINR",
    "last": -3.05768,
    "date": "2022-06-15T00:00:00",
    "previous": 2.48151,
    "previousDate": "2021-06-15T00:00:00",
    "country": "Albania",
    "category": "Financial Sector",
    "description": "Real interest rate (%)",
    "frequency": "yearly",
    "unit": "%",
    "title": "Real interest rate ",
    "URL": "/albania/real-interest-rate-percent-wb-data.html",
    "lastUpdate": "2024-03-21T08:14:00.28"
  }
]

By symbol

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

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/worldbank/indicator?s=usa.fr.inr.rinr&c={your_api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

Python
te.getWBIndicator(series_code = 'usa.fr.inr.rinr')
Text
https://api.tradingeconomics.com/worldbank/indicator?c={your_api_key}&s={symbol}&f=json
JSON
[
  {
    "symbol": "USA.FR.INR.RINR",
    "last": -1.18936,
    "date": "2021-06-15T00:00:00",
    "previous": 2.21041,
    "previousDate": "2020-06-15T00:00:00",
    "country": "United States",
    "category": "Financial Sector",
    "description": "Real interest rate (%)",
    "frequency": "yearly",
    "unit": "%",
    "title": "Real interest rate ",
    "URL": "/united-states/real-interest-rate-percent-wb-data.html",
    "lastUpdate": "2024-03-21T16:09:54.117"
  }
]

By country

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/worldbank/country/portugal?c={your_api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

Python
te.getWBCountry(country = 'Portugal')
Text
https://api.tradingeconomics.com/worldbank/country/{country}?c={your_api_key}&f=json
JSON
[
  {
    "symbol": "PRT.AG.CON.FERT.PT.ZS",
    "last": 143.69798,
    "date": "2021-06-15T00:00:00",
    "previous": 148.97485,
    "previousDate": "2020-06-15T00:00:00",
    "country": "Portugal",
    "category": "Agriculture & Rural Development",
    "description": "Fertilizer consumption (% of fertilizer production)",
    "frequency": "yearly",
    "unit": "%",
    "title": "Fertilizer consumption (% of fertilizer production)",
    "URL": "/portugal/fertilizer-consumption-percent-of-fertilizer-production-wb-data.html",
    "lastUpdate": "2024-03-21T15:00:38.453"
  },
  {
    "symbol": "PRT.AG.CON.FERT.ZS",
    "last": 175.80018,
    "date": "2021-06-15T00:00:00",
    "previous": 180.81803,
    "previousDate": "2020-06-15T00:00:00",
    "country": "Portugal",
    "category": "Agriculture & Rural Development",
    "description": "Fertilizer consumption (kilograms per hectare of arable land)",
    "frequency": "yearly",
    "unit": "KG",
    "title": "Fertilizer consumption (kilograms per hectare of arable land)",
    "URL": "/portugal/fertilizer-consumption-kilograms-per-hectare-of-arable-land-wb-data.html",
    "lastUpdate": "2024-03-21T15:00:37"
  },
  {
    "symbol": "PRT.AG.LND.AGRI.K2",
    "last": 39622.955,
    "date": "2021-06-15T00:00:00",
    "previous": 39542.556,
    "previousDate": "2020-06-15T00:00:00",
    "country": "Portugal",
    "category": "Agriculture & Rural Development",
    "description": "Agricultural land (sq. km)",
    "frequency": "yearly",
    "unit": "sq. Km",
    "title": "Agricultural land (sq. km)",
    "URL": "/portugal/agricultural-land-sq-km-wb-data.html",
    "lastUpdate": "2024-03-21T15:00:38.277"
  }
]

By URL

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/worldbank/indicator?url=/united-states/real-interest-rate-percent-wb-data.html&c={your_api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

Python
te.getWBIndicator(url = '/united-states/real-interest-rate-percent-wb-data.html')
Text
https://api.tradingeconomics.com/worldbank/indicator?c={your_api_key}&url={url}&f=json
JSON
[
  {
    "symbol": "USA.FR.INR.RINR",
    "last": -1.18936,
    "date": "2021-06-15T00:00:00",
    "previous": 2.21041,
    "previousDate": "2020-06-15T00:00:00",
    "country": "United States",
    "category": "Financial Sector",
    "description": "Real interest rate (%)",
    "frequency": "yearly",
    "unit": "%",
    "title": "Real interest rate ",
    "URL": "/united-states/real-interest-rate-percent-wb-data.html",
    "lastUpdate": "2024-03-21T16:09:54.117"
  }
]

Response fields

FieldTypeDescriptionExample
SymbolstringWorld Bank series code or Trading Economics symbol“ABW.FR.INR.RINR”
LastnumberMost recent released value12.22872
DatestringRelease date and time in UTC for the latest value“2020-06-15T00:00:00”
PreviousnumberValue of the previous period (after revisions if applicable)1.10675
PreviousDatestringRelease date and time in UTC for the previous value“2019-06-15T00:00:00”
CountrystringCountry associated with the series“Mexico”
CategorystringCategory under which the indicator is classified“Financial Sector”
DescriptionstringBrief description of the indicator“Real interest rate (%)”
FrequencystringFrequency at which the indicator is reported“yearly”
UnitstringMeasurement unit for the value“%”
TitlestringFull title of the World Bank series“Real interest rate”
URLstringTrading Economics link to the series“/aruba/real-interest-rate-percent-wb-data.html”
last_updatestringTimestamp when the data was last updated“2023-04-07T09:38:20.24”