# StockAnalysis.com Financials & ETF Data Scraper (`vexaloom-labs/stockanalysis-com-financials-and-etf-data-scraper`) Actor

Pull stock overviews, income statements, balance sheets, cash flow statements, ETF holdings, IPO calendar entries, and exchange stock lists from StockAnalysis.com by ticker, annual or quarterly period.

- **URL**: https://apify.com/vexaloom-labs/stockanalysis-com-financials-and-etf-data-scraper.md
- **Developed by:** [vexaloom-labs](https://apify.com/vexaloom-labs) (community)
- **Categories:** Automation, Developer tools, Other
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

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

Learn more: https://docs.apify.com/actors/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

## StockAnalysis.com Fundamentals, Financials & Screener Scraper

StockAnalysis.com is a free reference for US and international equities, ETFs, financial
statements, analyst forecasts and IPO activity. This actor turns its public pages into one clean
dataset: pick a mode, pass tickers or filters, and get typed records ready for a spreadsheet,
database or model.

No account, cookie, API key or proxy setup is needed. Every field is read from the same
logged-out page a visitor sees.

### Modes

| Mode | What it returns |
|---|---|
| `stockOverview` | Quote, company profile, valuation, growth, dividend summary, analyst consensus, price target, executives and recent headlines |
| `financials` | Income statement, balance sheet, cash flow statement or ratios, annual or quarterly, with TTM where the site publishes it |
| `statistics` | 90+ key statistics: valuation, EV ratios, margins, returns, debt, short interest, ownership, splits, scores |
| `forecast` | Consensus rating, rating counts, average/median/high/low price targets, annual and quarterly estimates, recent rating actions, 12-month recommendation trend |
| `dividends` | Per-share amount, yield, payout, growth, frequency, ex-dividend date and the 20 most recent payments |
| `priceHistory` | Daily open, high, low, close, adjusted close, volume and change for 6 months, YTD, 1 year or 5 years |
| `etfOverview` | AUM, expense ratio, P/E, dividend, beta, provider, category, index, performance, asset/sector/country allocation, holdings count and top 25 holdings |
| `ipoCalendar` | Recent IPOs with offer price, current price and return since listing; upcoming deals with price range, shares, deal size and market cap |
| `earningsCalendar` | Upcoming or recent earnings reports with date, before-open/after-close session, EPS and revenue estimates, growth and market cap |
| `stockList` | Market-cap tiers, exchanges, or any of StockAnalysis.com's list pages (dividend aristocrats, AI stocks, country lists, and more) |
| `screener` | The full US stock or ETF universe with filters, sorting and optional extra metric columns |
| `search` | Ticker/name lookup across US and international stocks, ETFs and funds |

Tickers can be plain (`AAPL`, `BRK.B`), exchange-qualified (`TSX:RY`, `LON:SHEL`), or full
StockAnalysis.com URLs. Plain tickers resolve to a stock page first, then an ETF page.

### Input

| Field | Default | Notes |
|---|---|---|
| `mode` | `stockOverview` | One of the modes above |
| `tickers` | `[]` (prefill `["AAPL"]`) | Used by the per-ticker modes; ignored by `ipoCalendar`, `stockList`, `screener`, `search` |
| `maxItems` | `50` | Caps dataset rows across the whole run (1–10,000) |
| `financialType` | `income-statement` | `income-statement`, `balance-sheet`, `cash-flow-statement`, `ratios` |
| `period` | `annual` | `annual` or `quarterly` |
| `includeTTM` | `true` | Include the TTM column in annual statements |
| `historyRange` | `6M` | `6M`, `YTD`, `1Y`, `5Y` |
| `ipoStatus` | `all` | `upcoming`, `recent` or `all` |
| `earningsStatus` | `upcoming` | `upcoming`, `recent` or `all` |
| `earningsFrom` | – | Earliest report date, `YYYY-MM-DD` |
| `earningsTo` | – | Latest report date, `YYYY-MM-DD` |
| `stockListType` | `large-cap` | `all-stocks`, `mega-cap`, `large-cap`, `mid-cap`, `small-cap`, `micro-cap`, `nano-cap`, `nasdaq`, `nyse`, `amex`, `all-etfs` |
| `customList` | – | Any list slug or `/list/` URL; overrides `stockListType` |
| `screenerType` | `stocks` | `stocks` or `etfs` |
| `search` | – | Screener text filter, or the search-mode query |
| `exchange`, `sector`, `industry`, `country` | – | Screener filters |
| `marketCapMin` | – | Minimum market capitalisation in USD |
| `marketCapMax` | – | Maximum market capitalisation in USD |
| `peRatioMin` | – | Minimum trailing P/E ratio |
| `peRatioMax` | – | Maximum trailing P/E ratio |
| `dividendYieldMin` | – | Minimum dividend yield, in percent |
| `dividendYieldMax` | – | Maximum dividend yield, in percent |
| `revenueMin` | – | Minimum trailing revenue in USD |
| `revenueMax` | – | Maximum trailing revenue in USD |
| `sortBy` | `marketCap` | Any data-point id; common values are in the dropdown |
| `sortDirection` | `desc` | `desc` or `asc` |
| `columns` | `[]` | Extra screener data-point ids, e.g. `shortFloat`, `roic`, `revenueGrowth` |

#### Examples

One company snapshot:

```json
{"mode": "stockOverview", "tickers": ["AAPL"]}
```

Quarterly balance sheets for three companies:

```json
{"mode": "financials", "tickers": ["AAPL", "MSFT", "TSX:RY"],
 "financialType": "balance-sheet", "period": "quarterly"}
```

Five years of daily prices for an ETF:

```json
{"mode": "priceHistory", "tickers": ["SPY"], "historyRange": "5Y", "maxItems": 2000}
```

Large-cap tech stocks with a dividend:

```json
{"mode": "screener", "sector": "Technology", "marketCapMin": 10000000000,
 "dividendYieldMin": 0.5, "sortBy": "marketCap", "maxItems": 100}
```

Upcoming IPOs with deal terms:

```json
{"mode": "ipoCalendar", "ipoStatus": "upcoming", "maxItems": 200}
```

This week's earnings reporters:

```json
{"mode": "earningsCalendar", "earningsStatus": "upcoming",
 "earningsFrom": "2026-11-30", "earningsTo": "2026-12-07", "maxItems": 200}
```

### Output

Every record has `recordType`, `ticker` where applicable, source URLs (`stockUrl`, `etfUrl`,
`ipoUrl`, `statisticsUrl`) and `scrapedAt`. Values are numbers where the source is numeric,
percentages are percent numbers (`0.30` means 0.30%), dates are ISO `YYYY-MM-DD` when the source
publishes a full date, and absolute URLs are used throughout.

- **Overview** — `price`, `change`, `changePercent`, `open`, `high`, `low`, `previousClose`,
  `volume`, `high52w`, `low52w`, `marketCap`, `revenue`, `netIncome`, `eps`, `peRatio`,
  `forwardPE`, `dividendPerShare`, `dividendYield`, `beta`, `analystRating`, `priceTargetNumeric`,
  `earningsDate`, `sector`, `industry`, `country`, `employees`, `ceo`, `address`, `founded`,
  `executives`, `news`.
- **Financials** — one row per period with `date`, `periodLabel`, `fiscalYear`, `fiscalQuarter`,
  `isTTM`, `currency` and the site's line-item ids (`revenue`, `gp`, `opinc`, `netinccmn`,
  `epsdil`, `assets`, `liabilities`, `equity`, `ncfo`, `capex`, `fcf`, …). Banks, insurers and
  REITs expose their own line items; the actor passes through what the page publishes.
- **Statistics** — flat metrics keyed by StockAnalysis.com's ids (`marketCap`, `enterpriseValue`,
  `peRatio`, `evEbitda`, `grossMargin`, `roe`, `debtEquity`, `shortFloat`, `zScore`, …).
- **Forecast** — `consensus`, `analystCount`, `strongBuy`/`buy`/`hold`/`sell`/`strongSell`,
  `priceTargetAverage/Median/High/Low`, `estimatesAnnual`, `estimatesQuarterly`,
  `ratingActions`, `recommendationTrend`.
- **Dividends** — `dividendPerShare`, `dividendYield`, `payoutRatio`, `frequency`,
  `exDividendDate`, `dividendGrowth`, `history[]` with amount and record/pay dates.
- **Price history** — one row per trading day with `date`, `open`, `high`, `low`, `close`,
  `adjustedClose`, `volume`, `changePercent`.
- **ETF** — `aum`, `expenseRatio`, `peRatio`, `beta`, `inceptionDate`, `provider`, `category`,
  `assetClass`, `region`, `indexTracked`, `holdingsCount`, `top10Weight`, `holdingsAsOf`,
  `topHoldings[]`, `sectorAllocation[]`, `countryAllocation[]`, `assetAllocation[]`,
  `performance`.
- **IPO** — `company`, `exchange`, `industry`, `ipoDate`, `priceRange`, `sharesOffered`,
  `dealSize`, `offerPrice`, `currentPrice`, `returnSinceIPO`, `marketCap`, `revenue`, `status`.
- **Earnings calendar** — `company`, `earningsDate`, `earningsTime`, `session`
  (`before-open`/`after-close`), `epsEstimate`, `revenueEstimate`, `epsEstimateGrowth`,
  `revenueEstimateGrowth`, `marketCap`, `exchange`, `sector`, `status`.
- **Stock list / screener** — `ticker`, `name`, `exchange`, `sector`, `industry`, `country`,
  `price`, `change`, `volume`, `marketCap` (or `aum`), `peRatio`, `revenue`, `netIncome`,
  `employees`, `dividendYield`, `eps`, `beta`, plus any requested `columns`.

### Which fields are complete?

- **Statements** — the free page shows TTM + 5 fiscal years or 20 quarters. Every line item shown
  is exported.
- **Statistics** — every free metric is exported. Fair-value formulas marked Pro are omitted
  rather than sent as `[PRO]`.
- **Forecast** — current and next fiscal year/quarter are free; later years are Pro and omitted.
- **Dividends** — the 20 most recent payments are free; older payments are Pro.
- **Price history** — 6 months to 5 years of daily bars; longer ranges and weekly/monthly bars are
  not exposed to logged-out visitors.
- **ETF holdings** — the public page lists the top 25 of the fund (e.g. 25 of 505). The full list is
  subscription-gated; `holdingsCount` tells you the denominator.
- **IPO dates** — some upcoming deals do not have a scheduled date yet. The record still carries
  price range, shares, deal size and market cap, and `ipoDate` is omitted until the site has one.

The actor never invents a fallback row. A wrong ticker, a page without statements, or a fund
without dividends produces a log line and an empty section, not fake data.

### Use cases

- Build a fundamentals table for a watchlist without opening each page.
- Refresh statements, statistics and forecasts on a schedule.
- Screen the whole US market by valuation, margin, growth, dividend or ownership.
- Feed an ETF exposure model with fund weights and sector/country allocations.
- Track IPO deal terms and post-listing performance.
- Start a backtest with five years of daily OHLCV.

### FAQ

**Does StockAnalysis.com have an official API?**
No. This actor reads the same public pages and embedded JSON that a logged-out browser uses.

**Do I need a Pro account, cookies or a proxy?**
No. The actor uses only public pages. It tries a direct request first and can fall back to an
Apify proxy automatically if the site blocks the cloud IP.

**Why is an ETF missing a statement?**
ETFs do not publish company financial statements on StockAnalysis.com. Use `etfOverview` for AUM,
expense ratio, allocations and holdings.

**Why are some fields missing for one company?**
Banks, insurers, REITs and early-stage companies publish different line items. Fields the source
does not have are omitted, never returned as null or a placeholder.

**Can I get more than 25 ETF holdings or more than 5 years of prices?**
Those are subscription-gated on the source. The actor reports what the public page shows and
`holdingsCount` / the history range make the limit explicit.

**Is this affiliated with StockAnalysis.com?**
No. It is an independent scraper of public pages and is not endorsed by or affiliated with the
site.

# Actor input Schema

## `mode` (type: `string`):

What to collect. Each mode writes its own record type to the dataset.

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

Symbols for the per-ticker modes. Use AAPL or BRK.B for US listings, TSX:RY or LON:SHEL for other exchanges, or paste stockanalysis.com URLs. Ignored by ipoCalendar, stockList, screener and search.

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

Stop after this many dataset records. Price history rows, statement periods, screener rows and IPO rows each count as one record.

## `financialType` (type: `string`):

Which statement to collect in financials mode.

## `period` (type: `string`):

Annual rows include TTM plus five fiscal years; quarterly rows cover up to 20 quarters.

## `includeTTM` (type: `boolean`):

Include the trailing-twelve-month column in annual statements when the site publishes it.

## `historyRange` (type: `string`):

How far back to collect daily prices. Five years is the largest range the public page exposes.

## `ipoStatus` (type: `string`):

Recent, upcoming, or both. Upcoming deals may not have a scheduled date yet.

## `earningsStatus` (type: `string`):

Upcoming reports, recent reports, or both. Used by earningsCalendar mode.

## `earningsFrom` (type: `string`):

Earliest report date, YYYY-MM-DD. Leave empty for the default window.

## `earningsTo` (type: `string`):

Latest report date, YYYY-MM-DD. Leave empty for the default window.

## `stockListType` (type: `string`):

A preset market-cap tier or exchange list. Ignored when Custom list is set.

## `customList` (type: `string`):

Any stockanalysis.com list, e.g. dividend-aristocrats, ai-stocks, canadian-stocks-us, or https://stockanalysis.com/list/dividend-aristocrats/. Overrides the preset list.

## `screenerType` (type: `string`):

Screen US stocks or US ETFs.

## `search` (type: `string`):

In screener mode: filter by ticker, company name, industry or sector. In search mode: the name or symbol to look up across US and international listings.

## `exchange` (type: `string`):

Filter the stock universe by exchange.

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

Filter the stock universe by sector.

## `industry` (type: `string`):

Exact industry name, e.g. Semiconductors or Software - Infrastructure.

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

Exact country name, e.g. United States or Ireland.

## `marketCapMin` (type: `number`):

Only keep companies at or above this market capitalisation.

## `marketCapMax` (type: `number`):

Only keep companies at or below this market capitalisation.

## `peRatioMin` (type: `number`):

Only keep companies at or above this trailing P/E ratio.

## `peRatioMax` (type: `number`):

Only keep companies at or below this trailing P/E ratio.

## `dividendYieldMin` (type: `number`):

Only keep companies at or above this dividend yield, in percent.

## `dividendYieldMax` (type: `number`):

Only keep companies at or below this dividend yield, in percent.

## `revenueMin` (type: `number`):

Only keep companies at or above this trailing revenue.

## `revenueMax` (type: `number`):

Only keep companies at or below this trailing revenue.

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

Screener sort column. Use any stockanalysis.com data-point id; these are the most common.

## `sortDirection` (type: `string`):

Descending puts the largest values first.

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

Optional stockanalysis.com data-point ids to add to every screener/stock-list record, e.g. revenueGrowth, shortFloat, roic. The scraper already adds a broad default set.

## Actor input object example

```json
{
  "mode": "stockOverview",
  "tickers": [
    "AAPL"
  ],
  "maxItems": 1,
  "financialType": "income-statement",
  "period": "annual",
  "includeTTM": true,
  "historyRange": "6M",
  "ipoStatus": "all",
  "earningsStatus": "upcoming",
  "stockListType": "large-cap",
  "screenerType": "stocks",
  "exchange": "",
  "sector": "",
  "sortBy": "marketCap",
  "sortDirection": "desc",
  "columns": []
}
```

# Actor output Schema

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

Default dataset containing every scraped record.

# 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 = {
    "mode": "stockOverview",
    "tickers": [
        "AAPL"
    ],
    "maxItems": 1,
    "includeTTM": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("vexaloom-labs/stockanalysis-com-financials-and-etf-data-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 = {
    "mode": "stockOverview",
    "tickers": ["AAPL"],
    "maxItems": 1,
    "includeTTM": True,
}

# Run the Actor and wait for it to finish
run = client.actor("vexaloom-labs/stockanalysis-com-financials-and-etf-data-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 '{
  "mode": "stockOverview",
  "tickers": [
    "AAPL"
  ],
  "maxItems": 1,
  "includeTTM": true
}' |
apify call vexaloom-labs/stockanalysis-com-financials-and-etf-data-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vexaloom-labs/stockanalysis-com-financials-and-etf-data-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/Gh9LFEFu44y5XvulW/builds/mLFv3TfQXhExJrvbR/openapi.json
