Skip to content

TradingView API: Screen stocks by country, sector and size

Finds publicly listed stocks in a country, filtered by sector, US-dollar market cap band and minimum dividend yield, in the requested order. Quotes may be delayed.

tradingview.com (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by TradingView.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

Sort optionalsort

Order stocks by market cap, daily gain, daily loss, or dividend yield, for example largest_first.

largest_first (default)

One of largest_first, biggest_gainers, biggest_losers, highest_dividend.

Sector optionalsector

TradingView stock sector, for example Technology, Finance, or Health Technology.

Not set

Country optionalcountry

Country of the stock exchange, for example United States or Canada.

United States (default)

Max Results optionalmax_results

Maximum number of stocks to return, for example 20.

20 (default)

Whole number from 1 to 100.

Company Size optionalcompany_size

Market cap band: small under 2 billion, mid 2-10 billion, large over 10 billion, or any.

any (default)

One of small, mid, large, any.

Minimum Dividend Yield (%) optionalminimum_dividend_yield_percent

Minimum dividend yield as a percent, for example 3.5.

Not set

Number 0 or more.

Output

From a run on Oct 23, 2026, shortened for this page.
{  "stocks": [    {      "price": 212.21,      "sector": "Electronic technology",      "ticker": "NVDA",      "company": "NVIDIA Corporation",      "currency": "USD",      "exchange": "NASDAQ",      "pe_ratio": 26.826030895254473,      "market_cap": 5114261000000,      "tradingview_link": "https://www.tradingview.com/symbols/NASDAQ-NVDA/",      "change_percent_today": -4.396990584313191,      "dividend_yield_percent": 0.234265891787178    },    {      "price": 348.22,      "sector": "Electronic technology",      "ticker": "AAPL",      "company": "Apple Inc.",      "currency": "USD",      "exchange": "NASDAQ",      "pe_ratio": 39.918379512340515,      "market_cap": 5081985500000,      "tradingview_link": "https://www.tradingview.com/symbols/NASDAQ-AAPL/",      "change_percent_today": 1.2296869095031886,      "dividend_yield_percent": 0.308148492688741    },    {      "price": 320.76,      "sector": "Technology services",      "ticker": "GOOG",      "company": "Alphabet Inc.",      "currency": "USD",      "exchange": "NASDAQ",      "pe_ratio": 16.114301216258987,      "market_cap": 3946087312500,      "tradingview_link": "https://www.tradingview.com/symbols/NASDAQ-GOOG/",      "change_percent_today": -3.0790149569421357,      "dividend_yield_percent": 0.259857984589817    }  ]}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
tradingview.com/screen_stocks
Returns
company, ticker, exchange, price, currency, daily change, market cap, P/E, dividend yield, sector, TradingView link

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method tradingview.com/screen_stocks with the inputs above.

Ask your agent

  • Show me the 15 largest US Health Technology stocks with market cap over 10 billion dollars
  • Which Canadian Finance companies pay a dividend yield above 4 percent? List their tickers and P/E ratios.
  • Find mid-cap Technology stocks in the United States, 2 to 10 billion market cap, sorted by biggest daily gainers
  • I need a list of top 25 German Energy companies sorted by highest dividend yield, with prices in euros
  • On tradingview.com, screen for small-cap Consumer Goods stocks in Japan that had the biggest daily losses today
  • Returns TradingView's buy, sell and neutral technical indicator summary for a stock, cryptocurrency or currency pair. Not investment advice.

    tradingview.com/get_technical_rating
  • Screens US-listed stocks on Finviz by sector, company size, minimum dividend yield, maximum P/E ratio and market signal, ranked by market value, today's gain or dividend yield.

    finviz.com/screen_stocks
  • Ranks public companies worldwide, or by country and industry, by market cap, revenue, earnings, employees or dividend yield. When both a country and an industry are set, the industry ranking order is kept and only companies from that country are shown.

    companiesmarketcap.com/list_largest_companies
  • Get a delayed US-listed stock snapshot from its ticker or company name. Analyst labels summarize Finviz's 1-5 mean score; dividend yield uses the estimated dividend when available. Missing metrics return null.

    finviz.com/get_stock_snapshot
  • Lists Yahoo Finance's top gainers, top losers, most active stocks, or regional trending tickers in Yahoo's order, with price, change, volume and market cap.

    finance.yahoo.com/list_market_movers
  • Lists MSN Money's current leading stock gainers, losers, or most-active shares in a selected market, in MSN's order. Lists may contain fewer than 50 stocks and prices may be delayed.

    msn.com/list_market_movers
  • Looks up a public company's size, financial figures and completed-year market-cap history from its name or ticker.

    companiesmarketcap.com/get_company_size
  • Looks up a stock by company name or ticker on Stock Analysis and returns its valuation ratios and company statistics, with the date the figures were last updated.

    stockanalysis.com/get_key_statistics