# TradingView Scraper - Stock Screener & Market Data (`goat255/tradingview-scraper`) Actor

Screen any market and get one clean row per instrument: price, change, volume, market cap, price to earnings, dividend yield, revenue, RSI, moving averages and analyst rating. Fifteen markets including crypto.

- **URL**: https://apify.com/goat255/tradingview-scraper.md
- **Developed by:** [Goutam Soni](https://apify.com/goat255) (community)
- **Categories:** Automation, Lead generation, Business
- **Stats:** 3 total users, 2 monthly users, 85.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$9.70 / 1,000 record scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## TradingView Scraper

Screen any market and get one clean row per instrument, with price, volume, valuation, fundamentals and technical readings. No login and no API key.

### What it does

- **Fifteen markets** including the US, India, the UK, Japan, Singapore, Hong Kong, Germany, Brazil, plus crypto and forex.
- **Price and activity** - last price, change and percent change, volume, value traded and volume relative to the last ten days.
- **Valuation** - market cap, price to earnings, price to book, earnings per share and dividend yield.
- **Fundamentals** - revenue, net income, gross margin, total debt, employee count and beta.
- **Technicals** - RSI, the 50 and 200 day moving averages, 52 week high and low, and all time high and low.
- **Analyst rating** turned into plain words, from Strong buy to Strong sell, with the underlying score kept as well.
- **Filters** applied at the source for market cap, volume and price range, so filtered rows are never fetched, plus a sector filter.

Prices move all day, so schedule the run to build your own time series.

Common uses: stock screening, building a market dataset, valuation and dividend research, sector comparison, and monitoring a watchlist across several exchanges.

### Input

| Field | Type | Description |
|---|---|---|
| `markets` | array | Which markets to screen. Each is walked separately. |
| `sort` | string | `market_cap`, `volume`, `change`, `price`, `relative_volume`, `dividend_yield`, `rsi`. |
| `ascending` | boolean | Sort smallest first. |
| `maxResultsPerMarket` | integer | Cap per market. Default 200, up to 10000. |
| `minMarketCap` | integer | Only instruments at or above this market cap. |
| `minVolume` | integer | Only instruments at or above this volume. |
| `minPrice` / `maxPrice` | integer | Price range. |
| `sectors` | array | Only these sectors. |
| `proxyConfiguration` | object | Optional. Enable to spread requests across IPs. |

#### Example input

```json
{
  "markets": ["america", "singapore"],
  "sort": "market_cap",
  "maxResultsPerMarket": 500,
  "minMarketCap": 1000000000,
  "minVolume": 1000000
}
```

### Output

Each item is one instrument.

```json
{
  "symbol": "EXMPL",
  "ticker": "NASDAQ:EXMPL",
  "companyName": "Example Corporation",
  "market": "america",
  "exchange": "NASDAQ",
  "currency": "USD",
  "country": "United States",
  "price": 202.81,
  "changePercent": -2.2131,
  "changeAbsolute": -4.59,
  "volume": 144277627,
  "valueTraded": 29260945531.87,
  "relativeVolume": 1.1124,
  "marketCap": 4908001855563.88,
  "priceEarnings": 31.0591,
  "priceToBook": 31.337,
  "earningsPerShare": 6.53,
  "dividendYield": 0.0197,
  "revenue": 165218000000.0,
  "netIncome": 86540000000.0,
  "grossMargin": 69.8451,
  "totalDebt": 10500000000.0,
  "employees": 36000,
  "beta": 2.1543,
  "rsi": 41.2287,
  "sma50": 211.4402,
  "sma200": 178.9931,
  "high52Week": 212.19,
  "low52Week": 86.62,
  "allTimeHigh": 212.19,
  "allTimeLow": 0.0345,
  "analystRating": "Strong buy",
  "analystRatingScore": 0.6421,
  "sector": "Electronic Technology",
  "industry": "Semiconductors"
}
```

### Notes

- No login and no API key. Pick a market and run.
- `ticker` carries the exchange prefix, so it is unique across markets, while `symbol` is the plain ticker.
- Instruments are deduplicated across markets, so one listed in two of them is delivered once and charged once.
- Not every instrument reports every figure. Funds and trusts often have no employee count or price to earnings, for example, and those fields return `null` rather than a guess.
- The analyst rating is a score between minus one and one at the source. Both the plain label and the raw score are returned.

To improve our actors we collect anonymized usage telemetry (run stats and input patterns). No personal account data is collected.

# Actor input Schema

## `markets` (type: `array`):

Which markets to screen. Each is walked separately.

## `sort` (type: `string`):

How to order results.

## `ascending` (type: `boolean`):

Turn on to sort smallest first.

## `maxResultsPerMarket` (type: `integer`):

Cap per market. Default 200, up to 10000.

## `minMarketCap` (type: `integer`):

Only instruments at or above this market cap.

## `minVolume` (type: `integer`):

Only instruments at or above this volume.

## `minPrice` (type: `integer`):

Only instruments at or above this price.

## `maxPrice` (type: `integer`):

Only instruments at or below this price.

## `sectors` (type: `array`):

Optional. Only instruments in these sectors, for example Technology Services or Health Technology.

## `proxyConfiguration` (type: `object`):

Optional. Enable to spread requests across IP addresses.

## Actor input object example

```json
{
  "markets": [
    "america"
  ],
  "sort": "market_cap",
  "ascending": false,
  "maxResultsPerMarket": 200,
  "sectors": [
    "Technology Services"
  ]
}
```

# Actor output Schema

## `instruments` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "markets": [
        "america"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("goat255/tradingview-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "markets": ["america"] }

# Run the Actor and wait for it to finish
run = client.actor("goat255/tradingview-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "markets": [
    "america"
  ]
}' |
apify call goat255/tradingview-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=goat255/tradingview-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/iXDcrzfem77PxV37I/builds/U0RVObiVbb9YGV3PW/openapi.json
