# Stock Screener — FinViz Filter, Fundamentals, Technical, Sector (`gochujang/stock-screener`) Actor

Screen stocks using FinViz filters. Filter by market cap, sector, P/E ratio, RSI, volume, country, EPS growth, dividend yield, and 50+ other criteria. Returns fundamentals, technical indicators, and performance data. No API key required.

- **URL**: https://apify.com/gochujang/stock-screener.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Categories:** Business
- **Stats:** 2 total users, 1 monthly users, 4.5% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 item scanneds

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

## Stock Screener — FinViz Filter, Fundamentals, Technical Indicators

Screen stocks using 50+ FinViz filters including market cap, sector, P/E ratio, RSI, volume, country, EPS growth, and dividend yield. Returns fundamentals, technical indicators, and performance data for every matching stock. No API key required.

### What it does

This actor scrapes [FinViz](https://finviz.com/screener.ashx), the industry-standard free stock screener, using any combination of 50+ filter codes and returns structured JSON data per stock. You can filter by preset dropdowns (market cap, sector, country) or pass raw FinViz filter strings for full control.

Each result includes ticker, company name, sector, industry, country, market cap, P/E ratio, price, % change, and volume. Optionally enable financial details to also get P/B, P/S, EPS (TTM), and dividend yield.

### Use Cases

- **Value investing screens** — find undervalued large caps with low P/E and high ROE
- **Momentum screens** — catch oversold stocks (RSI < 30) for bounce plays
- **Sector rotation analysis** — count stocks per sector under certain conditions
- **Dividend stock hunting** — find high-yield, low-payout stocks
- **Growth stock discovery** — filter by EPS and sales growth quarter-over-quarter
- **Custom research** — combine any of 50+ FinViz filter codes for bespoke screens

### Why Use This vs Alternatives

| Tool | Cost | API |
|------|------|-----|
| Bloomberg Terminal | ~$25,000/yr | Yes |
| FactSet | ~$12,000/yr | Yes |
| Refinitiv Eikon | ~$8,000/yr | Yes |
| This Actor | **$0.002/stock** | No subscription needed |

No subscription, no API key, no monthly minimum. Pay only for what you use.

> **Note:** Uses FinViz free tier data. Data is delayed ~15 minutes. Not suitable for real-time HFT. For fundamental research, screening, and sector analysis this is more than sufficient.
> **Keywords:** stock screener · FinViz scraper · market cap filter · P/E ratio screen · RSI stock filter · fundamental analysis · technical stock screener · equity screener

### Common Filter Examples

#### Value Screen (Large caps, low P/E, high ROE, USA)

```
cap_largeover,fa_pe_low,fa_roe_o15,geo_usa
```

#### Growth Screen (Mid+ caps, strong EPS and sales growth)

```
fa_epsqoq_o25,fa_salesqoq_o25,cap_midover
```

#### Momentum / Oversold (RSI < 30, large caps)

```
ta_rsi_os30,cap_largeover
```

#### Dividend Hunters (Yield > 3%, low payout ratio)

```
fa_div_o3,fa_payout_low
```

#### Tech Sector with Positive EPS Growth

```
sec_technology,fa_epsqoq_pos
```

See [finviz.com/screener.ashx](https://finviz.com/screener.ashx) for the full list of filter codes.

### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `filters` | string | — | Raw FinViz filter codes, comma-separated (e.g. `cap_largeover,fa_pe_low`). Combined with preset selectors below. |
| `marketCap` | select | `any` | Market cap bracket: Any / Mega ($200B+) / Large ($10B–$200B) / Mid ($2B–$10B) / Small ($300M–$2B) / Micro ($50M–$300M) / Nano (<$50M) |
| `sector` | select | `any` | Sector filter: Technology, Healthcare, Financials, Energy, etc. |
| `country` | select | `usa` | Country: USA, China, Canada, UK, Germany, Japan, or Any |
| `sortBy` | select | `marketcap` | Sort column: ticker / company / marketcap / pe / price / change / volume |
| `sortOrder` | select | `desc` | Sort direction: desc (highest first) or asc |
| `maxResults` | integer | 100 | Maximum stocks to return (up to 500) |
| `includeFinancials` | boolean | false | Also fetch P/B, P/S, EPS (TTM), dividend yield per stock |

### Output

Each stock item:

```json
{
  "ticker": "AAPL",
  "company": "Apple Inc.",
  "sector": "Technology",
  "industry": "Consumer Electronics",
  "country": "USA",
  "market_cap": 3100000000000,
  "pe_ratio": 29.5,
  "price": 195.12,
  "change_pct": 1.23,
  "volume": 54321000,
  "screened_at": "2025-01-15T10:30:00+00:00"
}
```

With `includeFinancials: true`, each record also includes:

```json
{
  "ticker": "MSFT",
  "company": "Microsoft Corporation",
  "sector": "Technology",
  "industry": "Software—Infrastructure",
  "country": "USA",
  "market_cap": 3000000000000,
  "pe_ratio": 34.1,
  "price": 403.78,
  "change_pct": 0.87,
  "volume": 18750000,
  "pb_ratio": 12.4,
  "ps_ratio": 13.2,
  "eps_ttm": 11.82,
  "dividend_yield": 0.71,
  "roe": 42.5,
  "roi": null,
  "screened_at": "2025-01-15T10:30:00+00:00"
}
```

The last item in the dataset is a summary record:

```json
{
  "_type": "SUMMARY",
  "total_stocks": 87,
  "by_sector": {
    "Technology": 23,
    "Healthcare": 15,
    "Financials": 12
  },
  "avg_pe": 22.4,
  "avg_price": 145.32
}
```

### Pricing

| Event | Cost |
|-------|------|
| Actor start | $0.001 (flat) |
| Per stock returned | $0.002 each |

Example: Screening 100 US large-cap tech stocks = $0.001 + 100 × $0.002 = **$0.201**

Compare to Bloomberg Terminal at **$25,000/year**.

***

### Related actors

- [Yahoo Finance History](https://apify.com/gochujang/yahoo-finance-history) — Historical OHLCV data for stocks found via this screener for backtesting
- [Earnings Call Transcript](https://apify.com/gochujang/earnings-call-transcript) — Earnings transcripts for screened stocks to add qualitative context
- [SEC 13F Holdings Tracker](https://apify.com/gochujang/sec-13f-holdings-tracker) — Institutional ownership data for screened stocks to identify smart money positions

### Feedback

If this actor powers your stock research, a review helps others find it: [Leave a review on Apify Store](https://apify.com/gochujang/stock-screener#reviews)

# Actor input Schema

## `filters` (type: `string`):

FinViz filter codes, comma-separated (e.g. 'cap\_largeover,fa\_pe\_low,geo\_usa'). See finviz.com/screener.ashx for all codes. Leave empty for no filter.

## `marketCap` (type: `string`):

Market cap filter

## `sector` (type: `string`):

Stock sector filter

## `country` (type: `string`):

Country filter (e.g. USA, China, Canada)

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

Column to sort results by

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

Sort direction: desc returns highest values first, asc returns lowest first.

## `maxResults` (type: `integer`):

Maximum stocks to return (default 100)

## `includeFinancials` (type: `boolean`):

Also fetch financial view (P/B, P/S, EPS, dividend yield, etc.)

## Actor input object example

```json
{
  "marketCap": "large",
  "sector": "any",
  "country": "usa",
  "sortBy": "marketcap",
  "sortOrder": "desc",
  "maxResults": 20,
  "includeFinancials": false
}
```

# Actor output Schema

## `results` (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 = {
    "filters": "",
    "marketCap": "large",
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/stock-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 = {
    "filters": "",
    "marketCap": "large",
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("gochujang/stock-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 '{
  "filters": "",
  "marketCap": "large",
  "maxResults": 20
}' |
apify call gochujang/stock-screener --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gochujang/stock-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/EZVtB0pW4MVqXcUfV/builds/l15WycNZIDXfMDYv8/openapi.json
