Skip to main content gottem  — one API for every scraper.
Finance
Verified

Finviz Scraper

Screen stocks by technical and fundamental criteria, analyze heat maps, and review insider trades on Finviz. Built on spider-browser .

Get started Docs
target
finviz.com
success rate
99.9%
latency
~4ms
Quick start

Extract data in minutes.

finviz-scraper.ts
import { SpiderBrowser } from "spider-browser";

const spider = new SpiderBrowser({
  apiKey: process.env.SPIDER_API_KEY!,
  stealth: 2,
});

await spider.connect();
const page = spider.page!;
await page.goto("https://finviz.com/screener.ashx?v=111&f=cap_largeover,fa_pe_u20");
await page.content(10000);

const data = await page.evaluate(`(() => {
  const stocks = [];
  document.querySelectorAll("table.screener_table tbody tr[valign='top']").forEach(el => {
    const ticker = el.querySelector("td:nth-child(2) a")?.textContent?.trim();
    const company = el.querySelector("td:nth-child(3) a")?.textContent?.trim();
    const sector = el.querySelector("td:nth-child(4)")?.textContent?.trim();
    const marketCap = el.querySelector("td:nth-child(7)")?.textContent?.trim();
    const pe = el.querySelector("td:nth-child(8)")?.textContent?.trim();
    const price = el.querySelector("td:nth-child(9)")?.textContent?.trim();
    if (ticker) stocks.push({ ticker, company, sector, marketCap, pe, price });
  });
  return JSON.stringify({ total: stocks.length, stocks: stocks.slice(0, 20) });
})()`);

console.log(JSON.parse(data));
await spider.close();
ready to run · spider-browser · TypeScript
Fetch API

One endpoint for finviz.com.

Structured JSON from finviz.com with a single POST. AI-resolved selectors, cached on the first call.

POST /fetch/finviz.com/
TickerCompanySectorMarket capP/EPrice
cURL
curl -X POST https://api.spider.cloud/fetch/finviz.com/ \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"return_format": "json"}'
Python
import requests

resp = requests.post(
    "https://api.spider.cloud/fetch/finviz.com/",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={"return_format": "json"},
)
print(resp.json())
Node.js
const resp = await fetch("https://api.spider.cloud/fetch/finviz.com/", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ return_format: "json" }),
});
const data = await resp.json();
console.log(data);
Extraction

Fields you can pull.

TickerCompanySectorMarket capP/EPriceChangeVolume
Data

Market data capture

Extract real-time quotes, charts, and financial metrics from finviz.com.

Rendering

Dynamic charts

Full browser rendering for interactive charts, tables, and streaming tickers.

Scale

Bulk screening

Process thousands of tickers and financial instruments concurrently.

Related

More Finance scrapers.

Start

Start scraping finviz.com.

Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.