Skip to content
Docs
Get API key
Markets

Markets Search

Use the following API endpoints to search for market data.

The search will look into the categories: Indexes, markets (stocks), bonds, and commodities.

Search by country

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/markets/search/united%20states?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.getMarketsSearch(country='united states')

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

Text
https://api.tradingeconomics.com/markets/search/{country}?c={your_api_key}&f=json
JSON
[
  {
    "Symbol": "USGG10YR:IND",
    "Ticker": "USGG10YR",
    "Name": "US 10Y",
    "Country": "United States",
    "Date": "2023-10-11T12:13:47",
    "Type": "bond",
    "decimals": null,
    "state": null,
    "Last": null,
    "Close": null,
    "CloseDate": null,
    "MarketCap": null,
    "URL": "/united-states/government-bond-yield",
    "Importance": null,
    "DailyChange": null,
    "DailyPercentualChange": null,
    "WeeklyChange": null,
    "WeeklyPercentualChange": null,
    "MonthlyChange": null,
    "MonthlyPercentualChange": null,
    "YearlyChange": null,
    "YearlyPercentualChange": null,
    "YTDChange": null,
    "YTDPercentualChange": null,
    "day_high": null,
    "day_low": null,
    "yesterday": null,
    "lastWeek": null,
    "lastMonth": null,
    "lastYear": null,
    "startYear": null,
    "ISIN": "",
    "unit": null,
    "frequency": "Delayed",
    "LastUpdate": null
  },
  {
    "Symbol": "USGG1M:IND",
    "Ticker": "UNITEDSTA4WEEBILYIE",
    "Name": "US 4W",
    "Country": "United States",
    "Date": "2023-10-11T11:29:18",
    "Type": "bond",
    "decimals": null,
    "state": null,
    "Last": null,
    "Close": null,
    "CloseDate": null,
    "MarketCap": null,
    "URL": "/united-states/4-week-bill-yield",
    "Importance": null,
    "DailyChange": null,
    "DailyPercentualChange": null,
    "WeeklyChange": null,
    "WeeklyPercentualChange": null,
    "MonthlyChange": null,
    "MonthlyPercentualChange": null,
    "YearlyChange": null,
    "YearlyPercentualChange": null,
    "YTDChange": null,
    "YTDPercentualChange": null,
    "day_high": null,
    "day_low": null,
    "yesterday": null,
    "lastWeek": null,
    "lastMonth": null,
    "lastYear": null,
    "startYear": null,
    "ISIN": "",
    "unit": null,
    "frequency": "Delayed",
    "LastUpdate": null
  },
  {
    "Symbol": "USGG3M:IND",
    "Ticker": "UNITEDSTA3MONBILYIE",
    "Name": "US 3M",
    "Country": "United States",
    "Date": "2023-10-11T11:59:51",
    "Type": "bond",
    "decimals": null,
    "state": null,
    "Last": null,
    "Close": null,
    "CloseDate": null,
    "MarketCap": null,
    "URL": "/united-states/3-month-bill-yield",
    "Importance": null,
    "DailyChange": null,
    "DailyPercentualChange": null,
    "WeeklyChange": null,
    "WeeklyPercentualChange": null,
    "MonthlyChange": null,
    "MonthlyPercentualChange": null,
    "YearlyChange": null,
    "YearlyPercentualChange": null,
    "YTDChange": null,
    "YTDPercentualChange": null,
    "day_high": null,
    "day_low": null,
    "yesterday": null,
    "lastWeek": null,
    "lastMonth": null,
    "lastYear": null,
    "startYear": null,
    "ISIN": "",
    "unit": null,
    "frequency": "Delayed",
    "LastUpdate": null
  }
]

Search by country and category

category = (index, markets, forex, bond and commodity).

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/markets/search/united%20states?c={your_api_key}&category=index,markets'
data = requests.get(url).json()
print(data)

Or using our package:

Python
te.getMarketsSearch(country='united states', category = 'index')

With multi categories:

Python
te.getMarketsSearch(country='united states', category = ['index', 'markets'])
Text
https://api.tradingeconomics.com/markets/search/{country}?c={your_api_key}&category={category}&f=json
JSON
[
  {
    "Symbol": "SPX:IND",
    "Ticker": "SPX",
    "Name": "US500",
    "Country": "United States",
    "Date": "2026-07-08T08:03:40.743",
    "Type": "index",
    "decimals": 2,
    "state": "CLOSED",
    "Last": 7488.48,
    "Close": 7503.84502,
    "CloseDate": "2026-07-07T00:00:00",
    "MarketCap": 64458066329059,
    "URL": "/united-states/stock-market",
    "Importance": 1,
    "DailyChange": -33.58688,
    "DailyPercentualChange": -0.4456,
    "WeeklyChange": 5.2451,
    "WeeklyPercentualChange": 0.0701,
    "MonthlyChange": 101.8285,
    "MonthlyPercentualChange": 1.3785,
    "YearlyChange": 1225.2156,
    "YearlyPercentualChange": 19.5619,
    "YTDChange": 642.98,
    "YTDPercentualChange": 9.3927,
    "day_high": 7536.06,
    "day_low": 7478.63,
    "yesterday": 7503.845,
    "lastWeek": 7483.2349,
    "lastMonth": 7386.6515,
    "lastYear": 6263.2644,
    "startYear": 6845.5,
    "allTimeHigh": 7620.9,
    "allTimeHighDate": "2026-06-02T00:00:00",
    "allTimeLow": 4.4,
    "allTimeLowDate": "1932-06-01T00:00:00",
    "ISIN": "",
    "unit": "Index Points",
    "frequency": "Live",
    "LastUpdate": "2026-07-08T08:04:00"
  },
  {
    "Symbol": "VIX:IND",
    "Ticker": "VIX",
    "Name": "USVIX",
    "Country": "United States",
    "Date": "2023-10-11T12:16:31.383",
    "Type": "index",
    "decimals": null,
    "state": null,
    "Last": null,
    "Close": null,
    "CloseDate": null,
    "MarketCap": null,
    "URL": "/vix:ind",
    "Importance": null,
    "DailyChange": null,
    "DailyPercentualChange": null,
    "WeeklyChange": null,
    "WeeklyPercentualChange": null,
    "MonthlyChange": null,
    "MonthlyPercentualChange": null,
    "YearlyChange": null,
    "YearlyPercentualChange": null,
    "YTDChange": null,
    "YTDPercentualChange": null,
    "day_high": null,
    "day_low": null,
    "yesterday": null,
    "lastWeek": null,
    "lastMonth": null,
    "lastYear": null,
    "startYear": null,
    "ISIN": "",
    "unit": null,
    "frequency": "Delayed",
    "LastUpdate": null
  },
  {
    "Symbol": "W5000:IND",
    "Ticker": "W5000",
    "Name": "US5000",
    "Country": "United States",
    "Date": "2023-10-10T19:46:00",
    "Type": "index",
    "decimals": null,
    "state": null,
    "Last": null,
    "Close": null,
    "CloseDate": null,
    "MarketCap": null,
    "URL": "/w5000:ind",
    "Importance": null,
    "DailyChange": null,
    "DailyPercentualChange": null,
    "WeeklyChange": null,
    "WeeklyPercentualChange": null,
    "MonthlyChange": null,
    "MonthlyPercentualChange": null,
    "YearlyChange": null,
    "YearlyPercentualChange": null,
    "YTDChange": null,
    "YTDPercentualChange": null,
    "day_high": null,
    "day_low": null,
    "yesterday": null,
    "lastWeek": null,
    "lastMonth": null,
    "lastYear": null,
    "startYear": null,
    "ISIN": "",
    "unit": null,
    "frequency": "Delayed",
    "LastUpdate": null
  }
]

Search by term

Using Requests:

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

Or using our package:

Python
te.getMarketsSearch(country ='msft')
Text
https://api.tradingeconomics.com/markets/search/{term}?c={your_api_key}&f=json
JSON
[
  {
    "Symbol": "MSFT:US",
    "Ticker": "MSFT",
    "Name": "Microsoft",
    "Country": "United States",
    "Date": "2023-10-10T19:59:11.157",
    "Type": "stocks",
    "decimals": null,
    "state": null,
    "Last": null,
    "Close": null,
    "CloseDate": null,
    "MarketCap": null,
    "URL": "/msft:us",
    "Importance": null,
    "DailyChange": null,
    "DailyPercentualChange": null,
    "WeeklyChange": null,
    "WeeklyPercentualChange": null,
    "MonthlyChange": null,
    "MonthlyPercentualChange": null,
    "YearlyChange": null,
    "YearlyPercentualChange": null,
    "YTDChange": null,
    "YTDPercentualChange": null,
    "day_high": null,
    "day_low": null,
    "yesterday": null,
    "lastWeek": null,
    "lastMonth": null,
    "lastYear": null,
    "startYear": null,
    "ISIN": "US5949181045",
    "unit": null,
    "frequency": "Live",
    "LastUpdate": null
  }
]

Response fields

FieldTypeDescriptionExample
SymbolstringUnique symbol used by Trading Economics“6758:JP”
TickerstringUnique ticker code used by Trading Economics“6758”
NamestringFull name of the company or indicator“Sony”
CountrystringCountry associated with the instrument“Japan”
DatestringDate and time of the latest release in UTC (ISO 8601 format)“2023-04-13T00:00:00”
TypestringMarket type“stocks”
DecimalsnumberNumber of decimal places used in reported values2.0
StatestringCurrent market state“CLOSED”
LastnumberMost recent trading value or price11900.0000
ClosenumberLast recorded value before the market closed11900.0000
CloseDatestringDate and time of the last closing price (ISO 8601 format)“2023-04-13T00:00:00”
MarketCapnumberMarket capitalization14684155308900.0
URLstringTrading Economics link to the instrument’s detail page“/commodity/eggs-ch”
ImportancenumberIndicator importance score ranging from 0 (lowest) to 1000 (highest)1000
DailyChangenumberAbsolute difference between previous close and current price-8.0000
DailyPercentualChangenumberPercentage difference between previous close and current price-0.1801
WeeklyChangenumberAbsolute difference between last week’s close and current price56.0000
WeeklyPercentualChangenumberPercentage difference between last week’s close and current price1.2788
MonthlyChangenumberAbsolute difference between last month’s close and current price-139.0000
MonthlyPercentualChangenumberPercentage difference between last month’s close and current price-3.0389
YearlyChangenumberAbsolute difference between last year’s close and current price-15.0000
YearlyPercentualChangenumberPercentage difference between last year’s close and current price-0.3371
YTDChangenumberAbsolute difference between last year’s final close and current price (YTD)525.0000
YTDPercentualChangenumberPercentage difference between last year’s final close and current price (YTD)13.4271
day_highnumberHighest trading value of the current day4460.0000
day_lownumberLowest trading value of the current day4410.0000
YesterdaynumberPrevious day’s closing price4443.0000
LastWeeknumberClosing price from the previous week4379.0000
LastMonthnumberClosing price from the previous month4574.0000
LastYearnumberClosing price from the previous year4450.0000
StartYearnumberClosing price at the start of the current year3910.0000
ISINstringInternational Securities Identification Number“US0378331005”
UnitstringUnit of measurement for the value“CNY/T”
FrequencystringReporting frequency of the market data“Daily”
LastUpdatestringTimestamp of the most recent data update (ISO 8601 format)“2023-04-13T18:24:00”