# TradingView Screener Scraper — Stocks, Crypto & Forex (`hipersoft/tradingview-screener-scraper`) Actor

Run the TradingView screener in bulk and export matching symbols with fundamentals and technicals. Covers stocks, crypto, forex, futures and 40+ country markets. Pick your columns, add filters, sort, and get one clean row per symbol as JSON, CSV or Excel.

- **URL**: https://apify.com/hipersoft/tradingview-screener-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Categories:** Other, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.0005 / symbol scraped

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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 Screener Scraper — Stocks, Crypto & Forex

Run the **TradingView screener** in bulk and export every matching symbol into clean JSON, CSV or Excel. Screen **US stocks, cryptocurrencies, forex pairs, futures and 40+ country markets** — choose exactly which **fundamentals and technicals** you want, filter, sort, and get **one tidy row per symbol**.

Perfect for **quant research, market dashboards, stock/crypto screening, portfolio tools and automated watchlists**.

### What you get

- 🌎 **Every market** — US stocks (`america`), `crypto`, `forex`, `futures`, plus 40+ country exchanges (UK, Germany, India, Japan, Singapore and more)
- 🧮 **Pick your columns** — price, change, volume, market cap, P/E, EPS, dividend yield, sector, RSI, moving averages, beta and hundreds more
- 🎯 **Powerful filters** — screen by any field: market cap over $1B, price above $10, RSI below 30, and so on
- ↕️ **Sort & cap** — order by market cap, volume or any field, and limit how many symbols you pull
- ⚡ **Fast & clean** — flat records with a `symbol` and `exchange` on every row, ready for spreadsheets or code

### Example input

Top 50 US stocks by market cap with default columns:

```json
{ "market": "america", "maxItems": 50 }
```

Large-cap US stocks trading above $10, with custom columns:

```json
{
  "market": "america",
  "columns": ["name", "close", "change", "volume", "market_cap_basic", "price_earnings_ttm", "dividend_yield_recent", "sector"],
  "filters": [
    { "left": "market_cap_basic", "operation": "greater", "right": 1000000000 },
    { "left": "close", "operation": "greater", "right": 10 }
  ],
  "sortBy": "market_cap_basic",
  "sortOrder": "desc",
  "maxItems": 500
}
```

Top cryptocurrencies by volume:

```json
{ "market": "crypto", "columns": ["name", "close", "change", "volume"], "sortBy": "volume", "maxItems": 100 }
```

### Output

Each row flattens the columns you requested and always includes `symbol` and `exchange`:

```json
{
  "symbol": "AAPL",
  "exchange": "NASDAQ",
  "name": "AAPL",
  "close": 313.45,
  "change": 1.14,
  "volume": 34024449,
  "market_cap_basic": 4574545801198,
  "price_earnings_ttm": 35.93,
  "sector": "Electronic Technology"
}
```

#### Output fields

| Field | Type | Description |
|-------|------|-------------|
| `symbol` | string | Ticker symbol, e.g. `AAPL`, `BTCUSD`, `EURUSD`. |
| `exchange` | string | Exchange or data source, e.g. `NASDAQ`, `BINANCE`. |
| *your columns* | mixed | One field per entry in `columns` (e.g. `close`, `change`, `volume`, `market_cap_basic`, `sector`), in the order you requested. |

### Input fields

| Field | Description |
|-------|-------------|
| `market` | Which screener to run: `america`, `crypto`, `forex`, `futures`, or a country slug (`uk`, `germany`, `india`, `singapore`, …). Default `america`. |
| `columns` | Fields to return per symbol (empty = a sensible default set). |
| `filters` | Optional conditions, each `{ "left": field, "operation": op, "right": value }`. |
| `sortBy` | Field to sort by (default `market_cap_basic`). |
| `sortOrder` | `desc` or `asc`. |
| `maxItems` | Maximum symbols to return. |

### FAQ

**Which markets are supported?**
US stocks (`america`), `crypto`, `forex`, `futures`, `bond`, `cfd`, plus 40+ country markets including the UK, Germany, France, India, Japan, Hong Kong, Singapore, Australia, Canada and Brazil.

**What columns can I request?**
Hundreds — price and OHLC fields, `market_cap_basic`, `price_earnings_ttm`, `earnings_per_share_basic_ttm`, `dividend_yield_recent`, `sector`, `industry`, technicals like `RSI`, `SMA50`, `SMA200`, `ATR`, `beta_1_year`, and more. Add any field name to `columns` and it becomes a column in the output.

**How do filters work?**
Each filter is `{ "left": <field>, "operation": <op>, "right": <value> }`. Operations include `greater`, `less`, `egreater` (≥), `eless` (≤), `equal`, `nequal`, `in_range`, `crosses`, `above` and `below`. Combine as many as you like.

**What's the output format?**
Structured JSON — one clean record per symbol. Export as JSON, CSV, Excel or via the API.

**Can I use this in n8n?**
Yes. Apify has an official [n8n community node](https://apify.com/integrations/n8n) — run this Actor from an n8n workflow and pipe the returned symbols straight into your automation, database or spreadsheet. It also works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier) and [many more](https://apify.com/integrations).

**Can I integrate this with other tools?**
The TradingView Screener Scraper connects with almost any cloud service or web app via [integrations on the Apify platform](https://apify.com/integrations): [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Google Drive](https://docs.apify.com/platform/integrations/drive) and more, plus the [Apify API](https://docs.apify.com/api/v2), JavaScript/Python clients, webhooks and MCP.

### Notes

Market data is © TradingView and the respective exchanges, and is provided for informational purposes — respect their terms and any redistribution restrictions. Original clean-room implementation.

# Actor input Schema

## `market` (type: `string`):

Which screener to run. Use 'america' for US stocks, 'crypto' for cryptocurrencies, 'forex' for currency pairs, 'futures' for futures, or a country slug (e.g. 'uk', 'germany', 'india', 'singapore', 'japan'). Defaults to america.

## `columns` (type: `array`):

Fields to return for each symbol, in order. Each value becomes a column in the output. Common fields: name, close, change, change\_abs, volume, market\_cap\_basic, price\_earnings\_ttm, earnings\_per\_share\_basic\_ttm, dividend\_yield\_recent, sector, industry, RSI, SMA50, SMA200, ATR, beta\_1\_year, exchange, description. Leave empty for a sensible default set (name, close, change, volume, market\_cap\_basic, price\_earnings\_ttm, sector).

## `filters` (type: `array`):

Optional screener conditions. Each item is an object {"left": <field>, "operation": <op>, "right": <value>}. Operations include greater, less, egreater (>=), eless (<=), equal, nequal, in\_range, crosses, above, below. Example: \[{"left":"market\_cap\_basic","operation":"greater","right":1000000000},{"left":"close","operation":"greater","right":10}]. Leave empty for no filtering.

## `sortBy` (type: `string`):

Field to sort results by, e.g. market\_cap\_basic, volume, change, close. Defaults to market\_cap\_basic.

## `sortOrder` (type: `string`):

Sort direction: desc (highest first) or asc (lowest first).

## `maxItems` (type: `integer`):

Maximum number of symbols to return. Results are paged 500 at a time.

## Actor input object example

```json
{
  "market": "america",
  "columns": [
    "name",
    "close",
    "change",
    "volume",
    "market_cap_basic",
    "price_earnings_ttm",
    "sector"
  ],
  "filters": [],
  "sortBy": "market_cap_basic",
  "sortOrder": "desc",
  "maxItems": 1000
}
```

# Actor output Schema

## `results` (type: `string`):

The results as dataset items.

# 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 = {
    "columns": [
        "name",
        "close",
        "change",
        "volume",
        "market_cap_basic",
        "price_earnings_ttm",
        "sector"
    ],
    "filters": [],
    "sortBy": "market_cap_basic",
    "maxItems": 1000
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/tradingview-screener-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 = {
    "columns": [
        "name",
        "close",
        "change",
        "volume",
        "market_cap_basic",
        "price_earnings_ttm",
        "sector",
    ],
    "filters": [],
    "sortBy": "market_cap_basic",
    "maxItems": 1000,
}

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

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

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

```

## CLI example

```bash
echo '{
  "columns": [
    "name",
    "close",
    "change",
    "volume",
    "market_cap_basic",
    "price_earnings_ttm",
    "sector"
  ],
  "filters": [],
  "sortBy": "market_cap_basic",
  "maxItems": 1000
}' |
apify call hipersoft/tradingview-screener-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hipersoft/tradingview-screener-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

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