# StockAnalysis Scraper (`parseforge/stockanalysis-scraper`) Actor

Scrapes stock data from StockAnalysis.com by ticker or screener filters. Returns one flat row per stock with price, market cap, P/E ratio, volume, sector, and more.

- **URL**: https://apify.com/parseforge/stockanalysis-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Business, News, Lead generation
- **Stats:** 8 total users, 2 monthly users, 90.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $19.00 / 1,000 results

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

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### StockAnalysis Scraper

**Scrape stock data from StockAnalysis.com for any ticker or the full screener, up to a million rows per run.** Every stock comes with price, market cap, P/E ratio, volume, sector, and more. No API key. Export to CSV, JSON, Excel, or XML.

StockAnalysis.com has clean, current stock data, but there is no official API and manual export is slow. This Actor reads the public pages directly, either for a list of tickers you choose or across the whole screener with filters, and returns each stock as one flat row. It works for US tickers like AAPL and MSFT, and for non-US tickers using exchange prefixes like LON:HSBA or TSX:RY.

| Who uses it | What they scrape StockAnalysis.com for |
|---|---|
| Market researchers | Which stocks in a sector meet a market cap threshold this week |
| Quantitative analysts | A clean dataset of fundamentals for backtesting a strategy |
| Financial journalists | Quick price and valuation snapshots for a list of companies |
| Portfolio managers | Daily updates on a watchlist of tickers across exchanges |
| Data engineers | A scheduled feed of stock data into a warehouse or dashboard |

### What it does

This Actor collects stock data from StockAnalysis.com by ticker or screener filters, and returns each stock as a flat row with price, market cap, P/E ratio, volume, sector, and other fields.

- 🎯 **Ticker mode:** pass a list of symbols like AAPL, MSFT, or LON:HSBA and get one row per stock.
- 🔍 **Screener mode:** browse all stocks on StockAnalysis.com and filter by sector, market cap min, and market cap max.
- 🌍 **Global coverage:** US tickers use the symbol alone, non-US tickers use EXCHANGE:TICKER format.
- 📊 **Flat output:** every stock is one row with consistent fields, ready for CSV, JSON, Excel, or XML.
- ⚡ **No API key:** the Actor reads public pages directly, so there is no registration or rate limit to manage.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with StockAnalysis.com data

**📈 Build a sector watchlist.**

A market researcher runs screener mode with sector=technology and marketCapMin=1000000000 to get every large-cap tech stock, then exports the CSV for a weekly report.

**🧪 Backtest a fundamental strategy.**

A quant passes a list of 500 tickers and uses the P/E ratio and market cap fields to filter for value stocks before running a backtest.

**📰 Fact-check a story.**

A journalist enters the tickers mentioned in a draft article and gets current price and volume to verify the numbers before publishing.

**💼 Monitor a portfolio.**

A portfolio manager schedules a daily run for 50 tickers across US and European exchanges and pushes the JSON into a dashboard.

**🗄️ Feed a data warehouse.**

A data engineer runs screener mode once a week for all stocks, then loads the CSV into Snowflake for internal analytics.

### Why choose this scraper

| | What you get |
|---|---|
| **No API key** | Reads public pages directly, no registration or OAuth |
| **Global tickers** | US symbols and exchange-prefixed symbols like EGX:COMI |
| **Screener filters** | Sector and market cap range to narrow the universe |
| **Scalable** | Up to 1,000,000 stocks per run for paid users |
| **Structured output** | One flat row per stock with consistent fields |

### How it compares

This Actor focuses on ticker and screener data from StockAnalysis.com, while the competitor below also covers ETFs and the other covers analyst articles from a different site.

| Feature | ParseForge | Stock Analysis Scraper - Stock & ETF Screener Data | Seeking Alpha Stock Analysis Scraper |
|---|---|---|---|
| Stock data from StockAnalysis.com | Yes | Yes | Not listed |
| ETF screener data | Not listed | Yes | Not listed |
| Ticker mode for specific stocks | Yes | Not listed | Yes |
| Screener mode with sector and market cap filters | Yes | Not listed | Not listed |
| Analyst articles and ratings | Not listed | Not listed | Yes |
| No API key required | Yes | Yes | Not listed |

### Configure the run

Drive the Actor from a list of tickers or from screener mode with sector and market cap filters, and only matching stocks reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

```json
{
 "tickers": [
 "AAPL",
 "MSFT",
 "GOOGL",
 "AMZN",
 "TSLA"
 ],
 "maxItems": 10
}
```

A larger pull:

```json
{
 "tickers": [
 "AAPL",
 "MSFT",
 "GOOGL",
 "AMZN",
 "TSLA"
 ],
 "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.021 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $2.10 |
| 1,000 results | $21.00 |
| 10,000 results | $210.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [StockAnalysis Scraper](https://apify.com/parseforge/stockanalysis-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to StockAnalysis.com through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/stockanalysis-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check that your tickers are in the correct format. US tickers use the symbol alone, non-US tickers need EXCHANGE:TICKER. In screener mode, make sure your filters are not too restrictive.

**Why did my run stop after 10 items?**

Free users are limited to 10 items as a preview. Upgrade to a paid plan to increase maxItems up to 1,000,000.

**Why is my non-US ticker not returning data?**

Verify the exchange prefix. For example, use LON:HSBA for London, not HSBA. Check StockAnalysis.com for the exact symbol format.

**Why are some fields empty in the output?**

StockAnalysis.com may not have data for every field for every stock. Empty fields mean the source page did not show a value.

**Why did the run fail with a timeout?**

Large screener runs can take time. Try reducing maxItems or narrowing filters. If the problem persists, contact support.

### FAQ

| Question | Answer |
|---|---|
| Do I need an API key for StockAnalysis.com? | No. The Actor reads the public pages directly, so there is no registration, OAuth, or key to manage. |
| Can I scrape non-US stocks? | Yes. Use the EXCHANGE:TICKER format, for example LON:HSBA for the London Stock Exchange or TSX:RY for Toronto. |
| What is the difference between ticker mode and screener mode? | Ticker mode takes a list of symbols you provide. Screener mode browses all stocks on StockAnalysis.com and applies optional filters like sector and market cap. |
| How many stocks can I scrape in one run? | Free users are limited to 10 items as a preview. Paid users can set maxItems up to 1,000,000. |
| What filters are available in screener mode? | You can filter by sector (11 options like technology or healthcare) and by market cap minimum and maximum in USD. |
| What output formats are supported? | The dataset can be exported to CSV, JSON, Excel, or XML from the Apify platform. |
| Does the Actor return historical data? | No, it returns the current data shown on StockAnalysis.com at the time of the run. For historical data, schedule regular runs and store the results. |
| Can I run this on a schedule? | Yes, you can schedule the Actor to run daily, weekly, or at any interval from the Apify console. |
| Is the data real-time? | The data reflects what StockAnalysis.com displays, which is typically delayed by up to 15 minutes for US markets. It is not a real-time feed. |
| What if a ticker is not found? | The Actor will skip that ticker and continue with the rest. Check the run log for any skipped symbols. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by StockAnalysis.com. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `tickers` (type: `array`):

Specific stock symbols to look up. US tickers use the symbol alone (AAPL, MSFT, TSLA). Non-US tickers use EXCHANGE:TICKER format — e.g. EGX:COMI for the Egyptian Exchange, LON:HSBA for the London Stock Exchange, TSX:RY for Toronto. Leave empty to use screener mode.

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

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000.

## `screener` (type: `boolean`):

Enable screener mode to browse all stocks with optional filters. When enabled, the tickers field is ignored.

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

Filter stocks by sector.

## `marketCapMin` (type: `integer`):

Minimum market capitalization in USD (e.g. 1000000000 for $1B).

## `marketCapMax` (type: `integer`):

Maximum market capitalization in USD (e.g. 10000000000 for $10B).

## Actor input object example

```json
{
  "tickers": [
    "AAPL",
    "MSFT",
    "GOOGL",
    "AMZN",
    "TSLA"
  ],
  "maxItems": 10,
  "screener": 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 = {
    "tickers": [
        "AAPL",
        "MSFT",
        "GOOGL",
        "AMZN",
        "TSLA"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/stockanalysis-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 = {
    "tickers": [
        "AAPL",
        "MSFT",
        "GOOGL",
        "AMZN",
        "TSLA",
    ],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/stockanalysis-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 '{
  "tickers": [
    "AAPL",
    "MSFT",
    "GOOGL",
    "AMZN",
    "TSLA"
  ],
  "maxItems": 10
}' |
apify call parseforge/stockanalysis-scraper --silent --output-dataset

```

## MCP server setup

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