Snapshot

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:

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

Or using our package:

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

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/worldbank/indicator?s=fr.inr.rinr&c=${api_key}`)
    console.log(response.data)
})()

Or using our package:

const te = require('tradingeconomics');
te.login('your_api_key');
data = te.getworldbank(series_code = 'fr.inr.rinr').then(function(data){
  console.log(data)       
});

Using Requests:

using (var httpClient = new HttpClient())
{
    using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/worldbank/indicator?s=fr.inr.rinr&c=your_api_key"))
    {
        request.Headers.TryAddWithoutValidation("Upgrade-Insecure-Requests", "1");
        var response = await httpClient.SendAsync(request);
        if (response.IsSuccessStatusCode)
        {
            var content = await response.Content.ReadAsStringAsync(); 
            Console.WriteLine(content);
        }
    }
}

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

/worldbank/indicator?s={series_code}

symbollastdatepreviouspreviousDatecountrycategorydescriptionfrequencyunittitleURLlastUpdate
ABW.FR.INR.RINR2.598486/15/2022 12:00:00 AM11.988416/15/2021 12:00:00 AMArubaFinancialSector Real interest rate (%)yearly%Real interest rate/aruba/real-interest-rate-percent-wb-data.html3/21/2024 8:06:54 AM
AGO.FR.INR.RINR3.277436/15/2022 12:00:00 AM-13.989376/15/2021 12:00:00 AMAngolaFinancialSector Real interest rate (%)yearly%Real interest rate/angola/real-interest-rate-percent-wb-data.html3/21/2024 8:10:59 AM
ALB.FR.INR.RINR-3.057686/15/2022 12:00:00 AM2.481516/15/2021 12:00:00 AMAlbaniaFinancialSector Real interest rate (%)yearly%Real interest rate/albania/real-interest-rate-percent-wb-data.html3/21/2024 8:14:00 AM

/worldbank/indicator?s={series_code}&f=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"}]

/worldbank/indicator?s={series_code}&f=csv

symbol,last,date,previous,previousDate,country,category,description,frequency,unit,title,URL,lastUpdate
ABW.FR.INR.RINR,2.59848,6/15/2022 12:00:00 AM,11.98841,6/15/2021 12:00:00 AM,Aruba,Financial Sector,Real interest rate (%),yearly,%,Real interest rate ,/aruba/real-interest-rate-percent-wb-data.html,3/21/2024 8:06:54 AM
AGO.FR.INR.RINR,3.27743,6/15/2022 12:00:00 AM,-13.98937,6/15/2021 12:00:00 AM,Angola,Financial Sector,Real interest rate (%),yearly,%,Real interest rate ,/angola/real-interest-rate-percent-wb-data.html,3/21/2024 8:10:59 AM
ALB.FR.INR.RINR,-3.05768,6/15/2022 12:00:00 AM,2.48151,6/15/2021 12:00:00 AM,Albania,Financial Sector,Real interest rate (%),yearly,%,Real interest rate ,/albania/real-interest-rate-percent-wb-data.html,3/21/2024 8:14:00 AM

/worldbank/indicator?s={series_code}&f=xml

<ArrayOfWorldbankSnap xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<WorldbankSnap>
<URL>/aruba/real-interest-rate-percent-wb-data.html</URL>
<category>Financial Sector</category>
<country>Aruba</country>
<date>2022-06-15T00:00:00</date>
<description>Real interest rate (%)</description>
<frequency>yearly</frequency>
<last>2.59848</last>
<lastUpdate>2024-03-21T08:06:54.167</lastUpdate>
<previous>11.98841</previous>
<previousDate>2021-06-15T00:00:00</previousDate>
<symbol>ABW.FR.INR.RINR</symbol>
<title>Real interest rate </title>
<unit>%</unit>
</WorldbankSnap>
<WorldbankSnap>
<URL>/angola/real-interest-rate-percent-wb-data.html</URL>
<category>Financial Sector</category>
<country>Angola</country>
<date>2022-06-15T00:00:00</date>
<description>Real interest rate (%)</description>
<frequency>yearly</frequency>
<last>3.27743</last>
<lastUpdate>2024-03-21T08:10:59.41</lastUpdate>
<previous>-13.98937</previous>
<previousDate>2021-06-15T00:00:00</previousDate>
<symbol>AGO.FR.INR.RINR</symbol>
<title>Real interest rate </title>
<unit>%</unit>
</WorldbankSnap>
<WorldbankSnap>
<URL>/albania/real-interest-rate-percent-wb-data.html</URL>
<category>Financial Sector</category>
<country>Albania</country>
<date>2022-06-15T00:00:00</date>
<description>Real interest rate (%)</description>
<frequency>yearly</frequency>
<last>-3.05768</last>
<lastUpdate>2024-03-21T08:14:00.28</lastUpdate>
<previous>2.48151</previous>
<previousDate>2021-06-15T00:00:00</previousDate>
<symbol>ALB.FR.INR.RINR</symbol>
<title>Real interest rate </title>
<unit>%</unit>
</WorldbankSnap>
</ArrayOfWorldbankSnap>

By symbol

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

Using Requests:

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

Or using our package:

te.getWBIndicator(series_code = 'usa.fr.inr.rinr')

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/worldbank/indicator?s=usa.fr.inr.rinr&c=${api_key}`)
    console.log(response.data)
})()

Or using our package:

data = te.getworldbank(series_code = 'usa.fr.inr.rinr').then(function(data){
  console.log(data)       
});

Using Requests:

using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/worldbank/indicator?s=usa.fr.inr.rinr&c=your_api_key"))

/worldbank/indicator?s={series_code}

symbollastdatepreviouspreviousDatecountrycategorydescriptionfrequencyunittitleURLlastUpdate
USA.FR.INR.RINR-1.189366/15/2021 12:00:00 AM2.210416/15/2020 12:00:00 AMUnited StatesFinancialSector Real interest rate(%)yearly%Real interest rate/united-states/real-interest-rate-percent-wb-data.html

/worldbank/indicator?s={symbol}&f=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"}]

/worldbank/indicator?s={symbol}&f=csv

symbol,last,date,previous,previousDate,country,category,description,frequency,unit,title,URL,lastUpdate
USA.FR.INR.RINR,-1.18936,6/15/2021 12:00:00 AM,2.21041,6/15/2020 12:00:00 AM,United States,Financial Sector,Real interest rate (%),yearly,%,Real interest rate ,/united-states/real-interest-rate-percent-wb-data.html,3/21/2024 4:09:54 PM

/worldbank/indicator?s={symbol}&f=xml

<ArrayOfWorldbankSnap xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<WorldbankSnap>
<URL>/united-states/real-interest-rate-percent-wb-data.html</URL>
<category>Financial Sector</category>
<country>United States</country>
<date>2021-06-15T00:00:00</date>
<description>Real interest rate (%)</description>
<frequency>yearly</frequency>
<last>-1.18936</last>
<lastUpdate>2024-03-21T16:09:54.117</lastUpdate>
<previous>2.21041</previous>
<previousDate>2020-06-15T00:00:00</previousDate>
<symbol>USA.FR.INR.RINR</symbol>
<title>Real interest rate </title>
<unit>%</unit>
</WorldbankSnap>
</ArrayOfWorldbankSnap>

By country

Using Requests:

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

Or using our package:

te.getWBCountry(country = 'Portugal')

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/worldbank/country/portugal?c=${api_key}`)
    console.log(response.data)
})()

Or using our package:

data = te.getworldbank(country = 'Portugal').then(function(data){
  console.log(data)       
});

Using Requests:

using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/worldbank/country/portugal?c=your_api_key"))

/worldbank/country/{country}

symbollastdatepreviouspreviousDatecountrycategorydescriptionfrequencyunittitleURLlastUpdate
PRT.AG.CON.FERT.PT.ZS143.697986/15/2021 12:00:00 AM148.974856/15/2020 12:00:00 AMPortugalAgriculture & Rural DevelopmentFertilizer consumption (% of fertilizer production)yearly%Fertilizer consumption (% of fertilizer production)/portugal/fertilizer-consumption-percent-of-fertilizer-production-wb-data.html3/21/2024 3:00:38 PM
PRT.AG.CON.FERT.ZS175.800186/15/2021 12:00:00 AM180.818036/15/2020 12:00:00 AMPortugalAgriculture & Rural DevelopmentFertilizer consumption (kilograms per hectare of arable land)yearlyKGFertilizer consumption (kilograms per hectare of arable land)/portugal/fertilizer-consumption-kilograms-per-hectare-of-arable-land-wb-data.html3/21/2024 3:00:37 PM
PRT.AG.LND.AGRI.K239622.955006/15/2021 12:00:00 AM39542.556006/15/2020 12:00:00 AMPortugalAgriculture & Rural DevelopmentAgricultural land (sq. km)yearlysq. KmAgricultural land (sq. km)/portugal/agricultural-land-sq-km-wb-data.html3/21/2024 3:00:38 PM

/worldbank/country/{country}?f=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.95500,"date":"2021-06-15T00:00:00","previous":39542.55600,"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"}]

/worldbank/country/{country}?f=csv

symbol,last,date,previous,previousDate,country,category,description,frequency,unit,title,URL,lastUpdate
PRT.AG.CON.FERT.PT.ZS,143.69798,6/15/2021 12:00:00 AM,148.97485,6/15/2020 12:00:00 AM,Portugal,Agriculture & Rural Development,Fertilizer consumption (% of fertilizer production),yearly,%,Fertilizer consumption (% of fertilizer production),/portugal/fertilizer-consumption-percent-of-fertilizer-production-wb-data.html,3/21/2024 3:00:38 PM
PRT.AG.CON.FERT.ZS,175.80018,6/15/2021 12:00:00 AM,180.81803,6/15/2020 12:00:00 AM,Portugal,Agriculture & Rural Development,Fertilizer consumption (kilograms per hectare of arable land),yearly,KG,Fertilizer consumption (kilograms per hectare of arable land),/portugal/fertilizer-consumption-kilograms-per-hectare-of-arable-land-wb-data.html,3/21/2024 3:00:37 PM
PRT.AG.LND.AGRI.K2,39622.95500,6/15/2021 12:00:00 AM,39542.55600,6/15/2020 12:00:00 AM,Portugal,Agriculture & Rural Development,Agricultural land (sq. km),yearly,sq. Km,Agricultural land (sq. km),/portugal/agricultural-land-sq-km-wb-data.html,3/21/2024 3:00:38 PM

/worldbank/country/{country}?f=xml

<ArrayOfWorldbankSnap xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<WorldbankSnap>
<URL>/portugal/fertilizer-consumption-percent-of-fertilizer-production-wb-data.html</URL>
<category>Agriculture & Rural Development</category>
<country>Portugal</country>
<date>2021-06-15T00:00:00</date>
<description>Fertilizer consumption (% of fertilizer production)</description>
<frequency>yearly</frequency>
<last>143.69798</last>
<lastUpdate>2024-03-21T15:00:38.453</lastUpdate>
<previous>148.97485</previous>
<previousDate>2020-06-15T00:00:00</previousDate>
<symbol>PRT.AG.CON.FERT.PT.ZS</symbol>
<title>Fertilizer consumption (% of fertilizer production)</title>
<unit>%</unit>
</WorldbankSnap>
<WorldbankSnap>
<URL>/portugal/fertilizer-consumption-kilograms-per-hectare-of-arable-land-wb-data.html</URL>
<category>Agriculture & Rural Development</category>
<country>Portugal</country>
<date>2021-06-15T00:00:00</date>
<description>Fertilizer consumption (kilograms per hectare of arable land)</description>
<frequency>yearly</frequency>
<last>175.80018</last>
<lastUpdate>2024-03-21T15:00:37</lastUpdate>
<previous>180.81803</previous>
<previousDate>2020-06-15T00:00:00</previousDate>
<symbol>PRT.AG.CON.FERT.ZS</symbol>
<title>Fertilizer consumption (kilograms per hectare of arable land)</title>
<unit>KG</unit>
</WorldbankSnap>
<WorldbankSnap>
<URL>/portugal/agricultural-land-sq-km-wb-data.html</URL>
<category>Agriculture & Rural Development</category>
<country>Portugal</country>
<date>2021-06-15T00:00:00</date>
<description>Agricultural land (sq. km)</description>
<frequency>yearly</frequency>
<last>39622.95500</last>
<lastUpdate>2024-03-21T15:00:38.277</lastUpdate>
<previous>39542.55600</previous>
<previousDate>2020-06-15T00:00:00</previousDate>
<symbol>PRT.AG.LND.AGRI.K2</symbol>
<title>Agricultural land (sq. km)</title>
<unit>sq. Km</unit>
</WorldbankSnap>
</ArrayOfWorldbankSnap>

By URL

Using Requests:

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

Or using our package:

te.getWBIndicator(url = '/united-states/real-interest-rate-percent-wb-data.html')

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/worldbank/indicator?url=/united-states/real-interest-rate-percent-wb-data.html&c=${api_key}`)
    console.log(response.data)
})()

Or using our package:

data = te.getworldbank(URL = '/united-states/real-interest-rate-percent-wb-data.html').then(function(data){
  console.log(data)       
});

Using Requests:

using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/worldbank/indicator?url=/united-states/real-interest-rate-percent-wb-data.html&c=your_api_key"))

/worldbank/indicator?url={url}

symbollastdatepreviouspreviousDatecountrycategorydescriptionfrequencyunittitleURLlastUpdate
USA.FR.INR.RINR-1.189366/15/2021 12:00:00 AM2.210416/15/2020 12:00:00 AMUnited StatesFinancial SectorReal interest rate (%)yearly%Real interest rate/united-states/real-interest-rate-percent-wb-data.html3/21/2024 4:09:54 PM

/worldbank/indicator?url={url}&f=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"}]

/worldbank/indicator?url={url}&f=csv

symbol,last,date,previous,previousDate,country,category,description,frequency,unit,title,URL,lastUpdate
USA.FR.INR.RINR,-1.18936,6/15/2021 12:00:00 AM,2.21041,6/15/2020 12:00:00 AM,United States,Financial Sector,Real interest rate (%),yearly,%,Real interest rate ,/united-states/real-interest-rate-percent-wb-data.html,3/21/2024 4:09:54 PM

/worldbank/indicator?url={url}&f=xml

<ArrayOfWorldbankSnap xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<WorldbankSnap>
<URL>/united-states/real-interest-rate-percent-wb-data.html</URL>
<category>Financial Sector</category>
<country>United States</country>
<date>2021-06-15T00:00:00</date>
<description>Real interest rate (%)</description>
<frequency>yearly</frequency>
<last>-1.18936</last>
<lastUpdate>2024-03-21T16:09:54.117</lastUpdate>
<previous>2.21041</previous>
<previousDate>2020-06-15T00:00:00</previousDate>
<symbol>USA.FR.INR.RINR</symbol>
<title>Real interest rate </title>
<unit>%</unit>
</WorldbankSnap>
</ArrayOfWorldbankSnap>

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”