Search

You can search by keyword, term, or category. If you do not know which category to look for, just use the search/{term} endpoint option.

Note: The response fields returned will depend on the search results

By term

Search for a term/keyword in all categories available

/search/{term}

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

te.getSearch(term  = 'gold')
const te = require('tradingeconomics');
te.login('your_api_key');

data = te.getSearch(term = 'gold').then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/search/gold?c=guest:guest");
SymbolCategoryCountryLatestValueFrequencyUnitCurrencyTitleUrlTypeImportanceLastUpdate
CHINAGOLRESGold ReservesChina2068.36QuarterlyTonnesChina Gold Reserves/china/gold-reservesEconomic13May 5 2023 9:35PM
EUROAREAGOLRESGold ReservesEuro Area506.52QuarterlyTonnesEuro Area Gold Reserves/euro-area/gold-reservesEconomic13May 5 2023 9:35PM
GERMANYGOLRESGold ReservesGermany3354.89QuarterlyTonnesGermany Gold Reserves/germany/gold-reservesEconomic13May 5 2023 9:35PM

List of categories

List all categories available for searching

/search/categories

te.getSearch()
data = te.getSearch().then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/search/categories?c=guest:guest");
Categories
Markets
Commodity
Currency
Index
Economic
Comtrade
Worldbank - wb
Federal Reserve - fred

By term and category

Search for a term/keyword and by category

/search/{term}?category={category}

te.getSearch(term  = 'japan', category = 'markets')
data = te.getSearch(term = 'japan', category = 'markets').then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/search/japan?category=markets&c=guest:guest");
SymbolTickerNameCountryDateTypedecimalsstateLastCloseCloseDateMarketCapURLImportanceDailyChangeDailyPercentualChangeWeeklyChangeWeeklyPercentualChangeMonthlyChangeMonthlyPercentualChangeYearlyChangeYearlyPercentualChangeYTDChangeYTDPercentualChangeday_highday_lowyesterdaylastWeeklastMonthlastYearstartYearISINunitfrequencyLastUpdate
GJGB10:INDGJGB10Japan 10YJapan7/14/2023 12:20:13 PMbond/japan/government-bond-yieldDelayed
GJGB1M:INDGJGB1MJapan 1MJapan7/14/2023 12:00:00 AMbond/japan/1-month-bill-yieldDaily
GJGB1Y:INDGJGB1YJapan 52WJapan7/14/2023 12:19:42 PMbond/japan/52-week-bill-yieldDelayed