Financial markets move fast, and staying ahead of the curve requires constant access to reliable, up-to-date information. Whether you're a quantitative analyst developing new trading strategies, an investment researcher identifying undervalued companies, or a market enthusiast tracking sector performance, manually gathering and synthesizing market data can be a significant bottleneck. Copying individual stock quotes, sifting through screener results, or compiling lists of top performers from various sources is time-consuming and prone to human error.
Imagine needing to track the top 50 cryptocurrencies by market cap, identify Indian stocks with a market cap above $1 billion sorted by RSI, or simply get real-time quotes for a specific portfolio of tickers like 'NASDAQ:AAPL' and 'NYSE:JPM'. Doing this efficiently, without manual intervention, is a common challenge.
This is where the TradingView Scraper actor on Apify comes in. It's a powerful, straightforward tool designed to pull live market data directly from TradingView's public scanner and symbol APIs. This means you can automate the process of collecting critical financial information, allowing you to focus on analysis and decision-making rather than data aggregation.
What is the TradingView Scraper?
The TradingView Scraper is an Apify actor that interacts directly with the same scanner.tradingview.com and symbol-search.tradingview.com endpoints that power TradingView's own web interface. This "pure HTTP" approach means it's fast, deterministic, and requires no authentication or proxies for its supported functions.
It offers 14 distinct modes, covering a wide array of data types:
- Screen stocks, crypto, forex, futures, commodities, ETFs, bonds, and indices.
- Fetch data for specific tickers.
- Perform symbol searches to get metadata like ISIN or CUSIP.
- Run preset screens for top gainers, top losers, or most active symbols.
- Even process any TradingView URL by automatically routing it to the correct scraper mode.
The actor supports 47 country/market codes for stock screening, enabling you to target specific global markets like america, uk, germany, japan, and india. You can apply powerful filters such as minMarketCap, minVolume, minPrice, maxPrice, and sectors to narrow down your results to exactly what you need. For even finer control, a containsKeyword parameter allows client-side filtering against symbol or company descriptions.
A Real-World Use Case: Identifying Investment Opportunities and Market Trends
Let's consider a scenario for an investment researcher. Their goal is to identify potential investment opportunities in the US technology sector by looking for large-cap stocks that show strong recent performance and are not excessively overbought.
Traditionally, this would involve:
- Navigating to TradingView's stock screener.
- Setting filters for market, sector, and market cap.
- Sorting by performance metrics, then by technical indicators like RSI.
- Manually copying relevant data points into a spreadsheet.
- Repeating this process regularly to track changes.
This manual approach is inefficient and can miss fleeting opportunities. With the TradingView Scraper, this entire process can be automated and run on demand.
The researcher can use the screenStocks mode, specify the market as america, and filter by sectors like Technology Services or Software. To target large-cap companies, they can set a minMarketCap (e.g., 10000000000 for $10 billion). They might then want to sortBy a performance metric like perfMonth_desc (monthly performance descending) to find stocks that have performed well recently, and perhaps filter out excessively high RSI values by checking other fields in the output or setting a maxRSI (though maxRSI isn't a direct input, the output contains the rsi field for client-side filtering).
The output provides a wealth of information for each screened stock, including symbol, name, marketCap, close, changePercent, volume, peRatio, dividendYield, sector, industry, rsi, perfWeek, perfMonth, perfYear, and even high52Week and low52Week. This comprehensive dataset can then be fed into their analysis tools to pinpoint promising candidates.
How to Use the TradingView Scraper
Using the TradingView Scraper is straightforward. Hereβs a quick walkthrough:
- Find the Actor: Navigate to the TradingView Scraper page on Apify Store.
- Set the Mode: Choose your desired
mode(e.g.,screenStocks,topGainers,byTicker). - Define Your Market & Filters:
- For stock-related modes, specify the
market(e.g.,america,india). - Apply filters like
minMarketCap(e.g.,1000000000for 1 billion),minVolume,minPrice,maxPrice, andsectors(e.g.,["Technology Services"]). - If you're looking for specific stocks, use
byTickermode with an array oftickers(e.g.,["NASDAQ:AAPL", "NYSE:MSFT"]). - For symbol search, use
searchSymbolwith asearchQuery(e.g.,Tesla).
- For stock-related modes, specify the
- Sort and Limit: Select a
sortBycolumn (e.g.,market_cap_basic_descorRSI_desc) and setmaxItems(up to 2000 records per run) to control the output size. - Run the Actor: Click "Start" to execute the scraper.
- Access Your Data: Once the run completes, download your extracted data in various formats like JSON, CSV, or Excel.
For example, to get the top 20 US stocks by market cap, your input would be:
{ "mode": "screenStocks", "market": "america", "sortBy": "market_cap_basic_desc", "maxItems": 20 }
To find Indian stocks above $1 billion market cap, sorted by RSI (overbought), you'd use:
{ "mode": "screenStocks", "market": "india", "sortBy": "RSI_desc", "minMarketCap": 1000000000, "maxItems": 100 }
What You Get in the Output
The actor provides a rich, flat record for each entry, with a recordType field to tag the row. Common fields include symbol, ticker, exchange, name, description, close, changePercent, volume, marketCap, peRatio, epsTtm, dividendYield, sector, industry, country, currency, and various performance metrics like rsi, perfWeek, perfMonth, perfYtd, and perfYear. For cryptocurrencies, you'll find rank, marketCap, volume24h, and changePercent24h. Symbol searches also return isin, cusip, and cikCode.
Each record also includes a url field, providing a direct link to the symbol's page on TradingView, allowing for easy deep dives into individual assets.
Key Advantages for Data Professionals
- Efficiency: Automate data collection that would otherwise take hours of manual work.
- Accuracy: Eliminate human error associated with manual data entry.
- Speed: Direct HTTP calls mean fast data retrieval, often near real-time for major exchanges (15-min delayed for some).
- Flexibility: Adapt your data queries instantly by changing input parameters.
- Comprehensive Data: Access a wide range of fundamental and technical metrics surfaced by TradingView.
- Scalability: Easily expand your data collection to hundreds or thousands of records with
maxItemsup to 2000.
Unlock Your Financial Insights
The TradingView Scraper is an indispensable tool for anyone who needs consistent, reliable access to market data for informed decision-making. Whether you're tracking daily market movements, conducting deep-dive research, or building algorithmic trading models, this actor provides the data foundation you need.
Ready to streamline your financial data acquisition? Give the TradingView Scraper a try today and experience the power of automated market intelligence.
Ready to try it yourself? Run *TradingView Scraper** on the Apify Store -- no setup required.*
Top comments (0)