# TradingView Stock Screener API - Filter Stocks and ETFs (`s-r/tradingview-screener`) Actor

Screen stocks and ETFs by market, market cap, P/E, sector, performance and volume. One typed JSON row per listing with quote, daily change and your selected statistics, for research pipelines, dashboards and watchlists. You pay per delivered row; an empty screen costs nothing.

- **URL**: https://apify.com/s-r/tradingview-screener.md
- **Developed by:** [SR](https://apify.com/s-r) (community)
- **Categories:** Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 instrument rows

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## TradingView Stock Screener and ETF Screener

Use this stock screener to find stock and ETF listings by market, valuation, sector, performance and trading volume. Export one structured row per instrument, with its identity, available quote and your selected statistics. It suits research pipelines, watchlist builders and recurring investment screens that need machine-readable results.

### What the stock screener returns

Each row represents a particular exchange listing. Two listings of the same company can have different currencies, prices or available statistics, so they remain separate instruments. Stocks include ordinary shares, preferred shares and depositary receipts. ETF mode selects exchange-traded funds and excludes other fund types. Global mode searches across the source's listing markets; a regional market restricts the listing location rather than the company's domicile.

The actor provides available screener observations. Exchange data can be delayed, and availability varies by instrument. A successful run does not establish a realtime market-data entitlement. Use the update_mode field to retain the source's delay label. fetched_at records when the response was retrieved, while as_of is that UTC retrieval date. source_time, when selected, is the source bar timestamp and is not promised to be the time of the latest trade.

### Input

Start with the actual input from the stock example:

```json
{"limit": 5}
```

The omitted defaults select the America market, stocks including depositary receipts, descending market capitalization and standard quote statistics. Choose market from america, netherlands, uk, brazil, germany, france, japan, china, india, korea, australia, canada, hongkong or global. Set instrument_type to stocks, etfs or all. Primary listings are optional: primary_only defaults to false, retaining secondary listings within the chosen market.

filters accepts up to twenty conditions, combined with AND. Each condition contains left, operation and right. The filter names are native source column names. Numeric fields support greater, egreater, less, eless, equal, nequal, in_range and not_in_range. The egreater and eless comparisons include the boundary. Range conditions require exactly two finite numbers in ascending order. Text fields support equal and nequal with exact source text. Unsupported fields and incorrect types are rejected before retrieval.

Market capitalization filters use USD. Price filters on close use the instrument's raw quote unit, which can differ across instruments. Sector labels are exact English source labels, such as Technology Services or Electronic Technology. Do not substitute another screener's sector codes. A missing statistic is not a numerical zero and should not be treated as one in downstream analysis.

columns accepts unique native column names from the documented catalog. Defaults cover ticker, company name, close, currency, daily percentage change, volume, market capitalization, trailing P/E, sector and monthly performance. Identity, instrument classification, quote currency and fundamental currency metadata are always included. Optional statistics appear only when their source columns are selected; an unavailable selected statistic is null.

Use symbols for up to one hundred full EXCHANGE:TICKER identifiers. An omitted or empty symbols list means no symbol restriction. Market selection and filters still apply. An unknown symbol contributes no invented row. Use a nonempty symbols list when you intend to restrict a screen to a watchlist.

### Output

The dataset contains instrument rows. Each includes source, fetched_at, symbol, asset_class, price, currency and as_of, together with ticker, exchange, market, instrument_type, type_specs, quote_price, quote_currency, update_mode and fundamental_currency. Other selected columns map to explicit output fields described in the catalog below.

symbol preserves the complete TradingView listing identity. ticker and exchange preserve the separate source values. For the captured NASDAQ:AAPL listing, ticker AAPL can feed the US input of our Market Quotes, Yahoo Finance Scraper and Yahoo Options Chain actors. Google Finance Scraper accepts AAPL:NASDAQ. International exchanges and share classes can require a different suffix or exchange mapping; no universal conversion is promised, and not every instrument has options.

price and currency form a normalized ISO currency amount. British pence quotes use GBP for price, while quote_price and quote_currency retain the original GBX amount. Absolute daily change and the 52-week range use the same normalization. Fundamental amounts, including market_cap, aum and EPS, use fundamental_currency, explicitly USD. Percentage changes, ratios and volumes retain their source scale. A P/E of null for an ETF remains null; analyst_rating is text and can be NoRating.

The run summary is stored separately from the instrument dataset. It includes the source total_count, effective limit and offset, market, instrument_type and next_offset. Source totals describe matches before pagination and are never an additional charge or a guarantee of a fixed market snapshot.

### Pagination and limits

One call returns at most one thousand instrument rows. The default limit is one hundred. Continue with offset equal to summary.next_offset and retain the same selection and sort. A null next_offset means the page is short, empty or at the end. An offset beyond the current total produces a successful empty page. Offsets are limited to one million.

Use name with sort_order asc for more repeatable pagination. Prices, instrument availability, totals and ordering can still change between calls. Deduplicate across runs using the complete symbol, rather than company names or local tickers. Within a call, duplicate complete identities are delivered once. The continuation advances by received source positions, including duplicates, so it does not reread those positions.

### Use cases

**Recurring valuation screen.** Run the same filter every week: market capitalization above a threshold, trailing P/E below a threshold, sector limited to the group you track. The rows land in your own table, and sorting by market_cap_basic gives the same ordering rule every run as long as the selection stays fixed.

**Watchlist enrichment.** Feed the symbols of a watchlist as full EXCHANGE:TICKER identities and add the statistics you chart elsewhere: relative volume, weekly or yearly performance, dividend yield, RSI. The identity stays stable across runs, so rows can be joined on symbol without fuzzy company-name matching.

**ETF shortlisting.** Select instrument_type etfs, then filter on aum, expense_ratio and the ETF-specific columns such as asset_class.tr, focus.tr and etf_holdings_count. A missing P/E on an ETF stays null rather than becoming a zero in your shortlist.

**Coverage check across listings.** Set primary_only to false and a wide market selection to see every listing the source holds for a company, including secondary listings in another currency. Two listings of the same company stay separate rows with their own quote units, which is what you need before deciding which one feeds the rest of your pipeline.

**Feeding quote actors.** The ticker and exchange fields in each row are the identifiers used by our Market Quotes, Google Finance Scraper, Yahoo Finance Scraper and Yahoo Options Chain actors, so a screen built here can become the input list for a quote run without a manual rewrite. International share classes can need a different suffix or exchange mapping; no universal conversion is promised.

### How this stock screener compares

There are three common ways to screen stocks today: the TradingView website itself, a spreadsheet-style screener site such as Finviz with a paid data API on top, and a hosted screener actor like this one.

| | TradingView website | Screener sites with a data API | This stock screener |
|---|---|---|---|
| Results you can store as rows | Manual export | Yes, on paid plans | Yes, every run |
| Filters as program input | No, clicks in the UI | Yes | Yes, typed filters |
| Statistics you do not chart stay out of the row | No, the layout decides | Depends on the plan | Yes, selected columns only |
| Price model | Subscription | Credit packs or subscription | Per delivered row |
| Empty result costs money | n/a | Depends on the plan | No product charge |
| Watchlist as explicit symbol list | Saved in the UI | Varies | Yes, up to one hundred identities |

The website wins when a human explores interactively; the row-based actors win when the screen is code, repeats on a schedule, or has to hand its tickers to other quote actors. Free screener sites usually show the numbers but do not hand back a typed, paginated row set with explicit currencies.

### Pricing

The reference product price is USD 0.003 per delivered instrument row. All selected statistics belong to that row, with no separate enrichment event. The quote event counts the rows actually delivered to the dataset. Source totals, selected columns, missing symbols and pagination metadata do not add billable rows. Empty selections have no product charge, and this product defines no start event. Check the active actor pricing panel for the applicable marketplace price.

Non-paying Apify users receive at most ten rows per run. The requested limit is reduced before retrieval, so the continuation still identifies the correct next source position. The cap does not remove selected statistics from those delivered rows. Paying users can request the documented per-call maximum and continue explicitly with the returned offset.

### FAQ

#### Does this provide guaranteed realtime exchange prices?

No. It returns the screener data available for each instrument, which can be delayed. Keep update_mode and fetched_at when storing observations, and obtain appropriate exchange data services for applications that require guaranteed realtime quotes.

#### Why is a selected field null or absent?

A selected field is null when the source has no value for that instrument. An optional field is absent when its source column was not selected. Required identity and quote metadata remain present. This distinction avoids turning unavailable data into false numerical observations.

#### Why is my watchlist empty?

The symbols must use complete source identities, and the selected market, instrument type and filters must match them. A valid selection with no matches is a successful empty result. An empty symbols array removes the watchlist restriction, so use an explicit nonempty list for watchlist screening.

#### Can I export an entire market in one run?

Each run reads one bounded page. Continue explicitly with next_offset until it becomes null, and combine the instrument rows in your own dataset. There is no automatic full-market loop, and separate pages do not form an atomic snapshot.

#### Is the actor affiliated with TradingView?

This is an independent ShoppingResult product. TradingView and exchange names identify the data source and instruments. Output availability and field coverage can change when the source changes.

### Column catalog

Native input column names map to fixed output field names. The additional always-present core fields describe normalized price, ISO currency and retrieval provenance. See the table for the exact selected-field translation.

| Input column | Output field | Source type |
|---|---|---|
| `name` | `ticker` | string |
| `description` | `name` | string |
| `type` | `instrument_type` | string |
| `subtype` | `instrument_subtype` | string |
| `typespecs` | `type_specs` | array |
| `exchange` | `exchange` | string |
| `market` | `market` | string |
| `close` | `quote_price` | number |
| `currency` | `quote_currency` | string |
| `change` | `change_percent` | number |
| `change_abs` | `change` | number |
| `volume` | `volume` | number |
| `market_cap_basic` | `market_cap` | number |
| `price_earnings_ttm` | `pe_ratio` | number |
| `sector` | `sector` | string |
| `industry` | `industry` | string |
| `country` | `country` | string |
| `Perf.W` | `performance_week` | number |
| `Perf.1M` | `performance_month` | number |
| `Perf.3M` | `performance_3months` | number |
| `Perf.6M` | `performance_6months` | number |
| `Perf.Y` | `performance_year` | number |
| `Perf.YTD` | `performance_ytd` | number |
| `average_volume_10d_calc` | `average_volume_10d` | number |
| `relative_volume_10d_calc` | `relative_volume_10d` | number |
| `earnings_per_share_basic_ttm` | `eps_basic_ttm` | number |
| `earnings_per_share_diluted_ttm` | `eps_diluted_ttm` | number |
| `dividends_yield_current` | `dividend_yield_percent` | number |
| `price_52_week_high` | `high_52_week` | number |
| `price_52_week_low` | `low_52_week` | number |
| `Recommend.All` | `technical_rating` | number |
| `RSI` | `rsi` | number |
| `AnalystRating` | `analyst_rating` | string |
| `update_mode` | `update_mode` | string |
| `time` | `source_time` | integer |
| `pricescale` | `price_scale` | integer |
| `minmov` | `min_tick` | integer |
| `fractional` | `fractional` | string |
| `is_primary` | `is_primary` | boolean |
| `fundamental_currency_code` | `fundamental_currency` | string |
| `aum` | `aum` | number |
| `expense_ratio` | `expense_ratio_percent` | number |
| `etf_holdings_count` | `holdings_count` | integer |
| `nav_total_return.3Y` | `nav_total_return_3y_percent` | number |
| `asset_class.tr` | `etf_asset_class` | string |
| `focus.tr` | `etf_focus` | string |

### Captured output example

The following row is from the actual local handler stock run on 12 November 2026. Values are observations at retrieval time, not current price promises.

```json
{
  "source": "tradingview-screener",
  "fetched_at": "2026-11-12T22:02:06.004Z",
  "symbol": "NASDAQ:AAPL",
  "asset_class": "equity",
  "price": 354.88,
  "currency": "USD",
  "as_of": "2026-11-12",
  "ticker": "AAPL",
  "name": "Apple Inc.",
  "quote_price": 354.88,
  "quote_currency": "USD",
  "change_percent": -0.21089334420605685,
  "volume": 30580436,
  "market_cap": 5157180691432.888,
  "pe_ratio": 39.54315003621371,
  "sector": "Electronic Technology",
  "performance_month": 2.963747406902347,
  "exchange": "NASDAQ",
  "market": "america",
  "instrument_type": "stock",
  "type_specs": [
    "common"
  ],
  "update_mode": "delayed_streaming_900",
  "fundamental_currency": "USD"
}
```

# Actor input Schema

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

Listing market, not company domicile. global searches all supported source markets.

## `instrument_type` (type: `string`):

Stocks include depositary receipts. ETFs exclude other fund types.

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

AND conditions using native column names. Market cap is USD; close uses each instrument's raw quote unit. Sector labels are exact English source values.

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

Native source columns. Identity, quote, type and currency metadata are always added; optional output fields appear only when selected.

## `limit` (type: `integer`):

Maximum instrument rows in this call. Non-paying Apify users and BASIC API plans are capped at 10 before retrieval.

## `offset` (type: `integer`):

Zero-based source position. Continue using summary.next_offset with the same filters and sort.

## `sort_by` (type: `string`):

Native scalar column. Omitted defaults to market_cap_basic for stocks/all or volume for ETFs. Use name asc for repeatable walks.

## `sort_order` (type: `string`):

Ascending or descending source sort order.

## `symbols` (type: `array`):

Full EXCHANGE:TICKER identifiers. Omitted or empty means no symbol restriction; market and filters still apply.

## `primary_only` (type: `boolean`):

Require the source primary-listing flag. False retains secondary listings in the selected market.

## Actor input object example

```json
{
  "market": "america",
  "instrument_type": "stocks",
  "filters": [],
  "columns": [
    "name",
    "description",
    "close",
    "currency",
    "change",
    "volume",
    "market_cap_basic",
    "price_earnings_ttm",
    "sector",
    "Perf.1M"
  ],
  "limit": 100,
  "offset": 0,
  "sort_order": "desc",
  "symbols": [],
  "primary_only": false
}
```

# Actor output Schema

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

One row per delivered instrument.

## `summary` (type: `string`):

Source totals and the next offset.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/tradingview-screener").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("s-r/tradingview-screener").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 '{}' |
apify call s-r/tradingview-screener --silent --output-dataset

```

## MCP server setup

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

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/1qfTE9UXk62kZoBeA/builds/ONsfvJhrZv508Dx7D/openapi.json
