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
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");
Symbol | Category | Country | LatestValue | Frequency | Unit | Currency | Title | Url | Type | Importance | LastUpdate |
---|---|---|---|---|---|---|---|---|---|---|---|
CHINAGOLRES | Gold Reserves | China | 2068.36 | Quarterly | Tonnes | China Gold Reserves | /china/gold-reserves | Economic | 13 | May 5 2023 9:35PM | |
EUROAREAGOLRES | Gold Reserves | Euro Area | 506.52 | Quarterly | Tonnes | Euro Area Gold Reserves | /euro-area/gold-reserves | Economic | 13 | May 5 2023 9:35PM | |
GERMANYGOLRES | Gold Reserves | Germany | 3354.89 | Quarterly | Tonnes | Germany Gold Reserves | /germany/gold-reserves | Economic | 13 | May 5 2023 9:35PM |
List of categories
List all categories available for searching
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");
Symbol | Ticker | Name | Country | Date | Type | decimals | state | Last | Close | CloseDate | MarketCap | URL | Importance | DailyChange | DailyPercentualChange | WeeklyChange | WeeklyPercentualChange | MonthlyChange | MonthlyPercentualChange | YearlyChange | YearlyPercentualChange | YTDChange | YTDPercentualChange | day_high | day_low | yesterday | lastWeek | lastMonth | lastYear | startYear | ISIN | unit | frequency | LastUpdate |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GJGB10:IND | GJGB10 | Japan 10Y | Japan | 7/14/2023 12:20:13 PM | bond | /japan/government-bond-yield | Delayed | |||||||||||||||||||||||||||
GJGB1M:IND | GJGB1M | Japan 1M | Japan | 7/14/2023 12:00:00 AM | bond | /japan/1-month-bill-yield | Daily | |||||||||||||||||||||||||||
GJGB1Y:IND | GJGB1Y | Japan 52W | Japan | 7/14/2023 12:19:42 PM | bond | /japan/52-week-bill-yield | Delayed |