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
te.getSearch(term = 'gold', output_type = 'df')
data = te.getSearch(term = 'gold').then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/search/gold?c=guest:guest");
List of categories
List all categories available for searching
te.getSearch(output_type = 'df')
data = te.getSearch().then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/search/categories?c=guest:guest");
By term and category
Search for a term/keyword and by category
/search/{term}?category={category}
te.getSearch(term = 'japan', category = 'markets', output_type = 'df')
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");