# Yahoo Finance & SEC EDGAR Scraper: Quotes, OHLCV & 10-K Filings (`informed_almandine_vzb/yahoo-finance-sec-edgar-scraper`) Actor

Scrape Yahoo Finance stock/ETF quotes, valuation multiples, historical OHLCV bars, and official SEC EDGAR filings (10-K, 10-Q, 8-K, Form D) with direct URLs.

- **URL**: https://apify.com/informed_almandine_vzb/yahoo-finance-sec-edgar-scraper.md
- **Developed by:** [Almandine Data](https://apify.com/informed_almandine_vzb) (community)
- **Categories:** AI, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## Yahoo Finance & SEC EDGAR Scraper: Quotes, OHLCV & 10-K Filings

Scrape Yahoo Finance stock/ETF quotes, valuation multiples, historical OHLCV bars, and official SEC EDGAR filings (10-K, 10-Q, 8-K, Form D) with direct URLs.

### What it does

Extracts real-time stock/ETF quotes, P/E & EPS multiples, 52-week ranges, daily OHLCV bars, and official SEC EDGAR filings (10-K, 10-Q, 8-K, Form D) in one pipeline. Export clean, deduplicated data as **JSON, CSV, Excel, XML, or RSS**, or connect directly via the **Apify REST API, Python/JavaScript SDKs, CLI, MCP Server, n8n, Make, or Zapier** — with **no login, cookies, or browser overhead**.

### Use cases

- **Equity Research & AI Financial Analyst Agents:** Feed live `regularMarketPrice`, `marketCap`, `TrailingPE`, `forwardPE`, `epsTrailingTwelveMonths`, and `latest10KDate` into LLM financial research agents.
- **Automated 10-K, 10-Q & 8-K Regulatory Monitoring:** Use `mode: "sec_filings_search"` with `onlyNew: true` to monitor material corporate events (`8-K`), quarterly earnings (`10-Q`), or private placements (`Form D`).
- **Portfolio & Watchlist Valuation Pipelines:** Sync 50+ tickers per run into Google Sheets, Airtable, Notion, or BigQuery at $0.08 per 55-stock run.
- **Quantitative Backtesting (OHLCV Bars):** Switch `mode` to `"historical_ohlcv"` to export clean daily Open/High/Low/Close/Volume time series.

### Why use this scraper?

| Feature | This Actor | Generic Browser / HTML Scrapers |
|---|---|---|
| **Architecture** | Direct structured API / JSON / feed requests (`curl_cffi`) | Heavy headless browser automation |
| **Speed & reliability** | **2–25 seconds** for 50–200 items | Minutes of high compute burn |
| **Pricing model** | **Pay per result (`$0.00` actor-start fee)** | Monthly rental or high CU overhead |
| **Error handling** | Failed inputs logged in `ERRORS` key-value record and **never charged** | Bills compute time even on failures |

### Input parameters

- **Ticker symbols** (`tickers`, `array`): Stock or ETF ticker symbols (e.g. 'AAPL', 'MSFT', 'NVDA', 'SPY').
- **Extraction mode** (`mode`, `string`): Extract real-time quotes + SEC EDGAR filings ('quotes_and_sec'), historical daily OHLCV bars ('historical_ohlcv'), or SEC EDGAR full-text/company filings ('sec_filings_search').
- **Attach recent SEC EDGAR filings (10-K, 10-Q, 8-K)** (`includeSecFilings`, `boolean`): When mode='quotes_and_sec', enriches each ticker with CIK, latest10KDate, latest10QDate, and direct sec.gov/Archives/edgar/data/ document links.
- **SEC form types filter** (`secFormsFilter`, `array`): SEC EDGAR form types to include (e.g. '10-K', '10-Q', '8-K', 'D', 'DEF 14A', 'S-1').
- **SEC EDGAR full-text search query (optional)** (`secSearchQuery`, `string`): Optional full-text query across SEC EDGAR filings when mode='sec_filings_search' (e.g. 'artificial intelligence', 'cybersecurity incident').
- **Historical OHLCV range** (`historyRange`, `string`): Lookback window when mode='historical_ohlcv'.
- **Only new records** (`onlyNew`, `boolean`): Emit only newly seen filings or OHLCV bars across runs via a persistent Key-Value Store.
- **Max results** (`maxItems`, `integer`): Maximum number of quote, OHLCV, or SEC filing records to emit.
- **Delay between requests** (`delaySeconds`, `number`): Polite pause between requests (default `0.25`).

#### Example input

```json
{
  "tickers": [
    "AAPL",
    "MSFT",
    "NVDA",
    "GOOGL",
    "AMZN"
  ],
  "mode": "quotes_and_sec",
  "includeSecFilings": true,
  "maxItems": 55
}
```

### Output & example output

One dataset row per result. Default table view columns: `recordType, symbol, shortName, regularMarketPrice, regularMarketChangePct, marketCap, TrailingPE, forwardPE, dividendYieldPct, latest10KDate, url`. Full structured JSON is stored in the run's default dataset.

#### Example output item

```json
{
  "recordType": "quote",
  "symbol": "AAPL",
  "shortName": "Apple Inc.",
  "longName": "Apple Inc.",
  "exchange": "NasdaqGS",
  "currency": "USD",
  "regularMarketPrice": 347.725,
  "regularMarketChange": -0.495,
  "regularMarketChangePct": -0.14,
  "regularMarketVolume": 39450857,
  "marketCap": 5074761285632,
  "fiftyTwoWeekLow": 243.42,
  "fiftyTwoWeekHigh": 351.73,
  "fiftyDayAverage": 329.4668,
  "twoHundredDayAverage": 294.4125,
  "TrailingPE": 39.88,
  "forwardPE": 36.37,
  "priceToBook": 47.25,
  "epsTrailingTwelveMonths": 8.72,
  "dividendYieldPct": 0.3,
  "cik": "0000320193",
  "sic": "3571",
  "sicDescription": "Electronic Computers",
  "latest10KDate": "2025-10-31",
  "latest10QDate": "2026-07-31",
  "recentSecFilings": [
    {
      "form": "10-Q",
      "filingDate": "2026-07-31",
      "reportDate": "2026-06-27",
      "accessionNumber": "0000320193-26-000020",
      "primaryDocument": "aapl-20260627.htm",
      "description": "10-Q",
      "filingUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000020/aapl-20260627.htm"
    },
    {
      "form": "8-K",
      "filingDate": "2026-07-30",
      "reportDate": "2026-07-30",
      "accessionNumber": "0000320193-26-000018",
      "primaryDocument": "aapl-20260730.htm",
      "description": "8-K",
      "filingUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000018/aapl-20260730.htm"
    },
    {
      "form": "10-Q",
      "filingDate": "2026-05-01",
      "reportDate": "2026-03-28",
      "accessionNumber": "0000320193-26-000013",
      "primaryDocument": "aapl-20260328.htm",
      "description": "10-Q",
      "filingUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000013/aapl-20260328.htm"
    }
  ],
  "url": "https://finance.yahoo.com/quote/AAPL/",
  "scrapedAt": "2026-10-25T11:50:19+00:00"
}
```

### Pricing (Pay-Per-Result)

This Actor uses transparent **Pay-Per-Event** pricing with a **`$0.00` actor-start fee**:

| Event | What is charged | Price |
|---|---|---|
| `quote-result` | Quote or OHLCV bar scraped (One stock/ETF quote or OHLCV bar record) | **$0.0015 / result** (**$1.50 / 1,000 results**) |
| `filing-result` | SEC EDGAR filing scraped (One SEC EDGAR filing record (10-K, 10-Q, 8-K, Form D)) | **$0.0025 / result** (**$2.50 / 1,000 results**) |
| `apify-actor-start` | Actor start fee | **$0.00** |

#### Concrete pricing math

- **`quote-result` (Quote or OHLCV bar scraped):** `1,000 results = $1.50` (`50 results = $0.07`, `10,000 results = $15.00`). Apify's **$5.00/month Free Tier** covers up to **3,333 results/month** at **$0.00** out-of-pocket.
- **`filing-result` (SEC EDGAR filing scraped):** `1,000 results = $2.50` (`50 results = $0.12`, `10,000 results = $25.00`). Apify's **$5.00/month Free Tier** covers up to **2,000 results/month** at **$0.00** out-of-pocket.
- **Empty runs (`0` results) & skipped duplicates (`onlyNew` / `onlyChanged`):** **$0.00**.

### Data and compliance

Public market data and public U.S. SEC EDGAR regulatory filings accessed with a compliant SEC User-Agent header and polite rate limiting. Requests are rate-limited and routed through Apify Proxy. Per-input errors are recorded in the run's `ERRORS` key-value record and are never charged.

### FAQ

**Do I need an account, login, or API key?**\
No. This Actor queries public endpoints directly and requires zero credentials.

**What happens if I start a run with empty `{}` input via API or CLI?**\
Every required input defines both `prefill` and `default` values in `.actor/input_schema.json`, so an empty `{}` run automatically returns **50+ live records** out of the box.

# Actor input Schema

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

Stock or ETF ticker symbols (e.g. 'AAPL', 'MSFT', 'NVDA', 'SPY').

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

Extract real-time quotes + SEC EDGAR filings ('quotes_and_sec'), historical daily OHLCV bars ('historical_ohlcv'), or SEC EDGAR full-text/company filings ('sec_filings_search').

## `includeSecFilings` (type: `boolean`):

When mode='quotes_and_sec', enriches each ticker with CIK, latest10KDate, latest10QDate, and direct sec.gov/Archives/edgar/data/ document links.

## `secFormsFilter` (type: `array`):

SEC EDGAR form types to include (e.g. '10-K', '10-Q', '8-K', 'D', 'DEF 14A', 'S-1').

## `secSearchQuery` (type: `string`):

Optional full-text query across SEC EDGAR filings when mode='sec_filings_search' (e.g. 'artificial intelligence', 'cybersecurity incident').

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

Lookback window when mode='historical_ohlcv'.

## `onlyNew` (type: `boolean`):

Emit only newly seen filings or OHLCV bars across runs via a persistent Key-Value Store.

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

Maximum number of quote, OHLCV, or SEC filing records to emit.

## `delaySeconds` (type: `number`):

Polite pause between requests.

## `proxyConfiguration` (type: `object`):

Apify Proxy settings.

## Actor input object example

```json
{
  "tickers": [
    "AAPL",
    "MSFT",
    "NVDA",
    "GOOGL",
    "AMZN",
    "META",
    "TSLA",
    "BRK-B",
    "AVGO",
    "LLY",
    "JPM",
    "V",
    "WMT",
    "XOM",
    "MA",
    "UNH",
    "ORCL",
    "COST",
    "HD",
    "PG",
    "NFLX",
    "JNJ",
    "BAC",
    "ABBV",
    "CRM",
    "KO",
    "CVX",
    "MRK",
    "AMD",
    "PEP",
    "TMO",
    "LIN",
    "CSCO",
    "ACN",
    "ADBE",
    "WFC",
    "MCD",
    "IBM",
    "ABT",
    "GE",
    "PM",
    "AXP",
    "MS",
    "TXN",
    "ISRG",
    "QCOM",
    "INTU",
    "NOW",
    "CAT",
    "AMGN",
    "GS",
    "DIS",
    "UBER",
    "PFE",
    "BKNG"
  ],
  "mode": "quotes_and_sec",
  "includeSecFilings": true,
  "secFormsFilter": [
    "10-K",
    "10-Q",
    "8-K",
    "D"
  ],
  "secSearchQuery": "",
  "historyRange": "1mo",
  "onlyNew": false,
  "maxItems": 55,
  "delaySeconds": 0.25,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `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",
        "NVDA",
        "GOOGL",
        "AMZN",
        "META",
        "TSLA",
        "BRK-B",
        "AVGO",
        "LLY",
        "JPM",
        "V",
        "WMT",
        "XOM",
        "MA",
        "UNH",
        "ORCL",
        "COST",
        "HD",
        "PG",
        "NFLX",
        "JNJ",
        "BAC",
        "ABBV",
        "CRM",
        "KO",
        "CVX",
        "MRK",
        "AMD",
        "PEP",
        "TMO",
        "LIN",
        "CSCO",
        "ACN",
        "ADBE",
        "WFC",
        "MCD",
        "IBM",
        "ABT",
        "GE",
        "PM",
        "AXP",
        "MS",
        "TXN",
        "ISRG",
        "QCOM",
        "INTU",
        "NOW",
        "CAT",
        "AMGN",
        "GS",
        "DIS",
        "UBER",
        "PFE",
        "BKNG"
    ],
    "mode": "quotes_and_sec",
    "includeSecFilings": true,
    "secFormsFilter": [
        "10-K",
        "10-Q",
        "8-K",
        "D"
    ],
    "secSearchQuery": "",
    "historyRange": "1mo",
    "onlyNew": false,
    "maxItems": 55
};

// Run the Actor and wait for it to finish
const run = await client.actor("informed_almandine_vzb/yahoo-finance-sec-edgar-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",
        "NVDA",
        "GOOGL",
        "AMZN",
        "META",
        "TSLA",
        "BRK-B",
        "AVGO",
        "LLY",
        "JPM",
        "V",
        "WMT",
        "XOM",
        "MA",
        "UNH",
        "ORCL",
        "COST",
        "HD",
        "PG",
        "NFLX",
        "JNJ",
        "BAC",
        "ABBV",
        "CRM",
        "KO",
        "CVX",
        "MRK",
        "AMD",
        "PEP",
        "TMO",
        "LIN",
        "CSCO",
        "ACN",
        "ADBE",
        "WFC",
        "MCD",
        "IBM",
        "ABT",
        "GE",
        "PM",
        "AXP",
        "MS",
        "TXN",
        "ISRG",
        "QCOM",
        "INTU",
        "NOW",
        "CAT",
        "AMGN",
        "GS",
        "DIS",
        "UBER",
        "PFE",
        "BKNG",
    ],
    "mode": "quotes_and_sec",
    "includeSecFilings": True,
    "secFormsFilter": [
        "10-K",
        "10-Q",
        "8-K",
        "D",
    ],
    "secSearchQuery": "",
    "historyRange": "1mo",
    "onlyNew": False,
    "maxItems": 55,
}

# Run the Actor and wait for it to finish
run = client.actor("informed_almandine_vzb/yahoo-finance-sec-edgar-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",
    "NVDA",
    "GOOGL",
    "AMZN",
    "META",
    "TSLA",
    "BRK-B",
    "AVGO",
    "LLY",
    "JPM",
    "V",
    "WMT",
    "XOM",
    "MA",
    "UNH",
    "ORCL",
    "COST",
    "HD",
    "PG",
    "NFLX",
    "JNJ",
    "BAC",
    "ABBV",
    "CRM",
    "KO",
    "CVX",
    "MRK",
    "AMD",
    "PEP",
    "TMO",
    "LIN",
    "CSCO",
    "ACN",
    "ADBE",
    "WFC",
    "MCD",
    "IBM",
    "ABT",
    "GE",
    "PM",
    "AXP",
    "MS",
    "TXN",
    "ISRG",
    "QCOM",
    "INTU",
    "NOW",
    "CAT",
    "AMGN",
    "GS",
    "DIS",
    "UBER",
    "PFE",
    "BKNG"
  ],
  "mode": "quotes_and_sec",
  "includeSecFilings": true,
  "secFormsFilter": [
    "10-K",
    "10-Q",
    "8-K",
    "D"
  ],
  "secSearchQuery": "",
  "historyRange": "1mo",
  "onlyNew": false,
  "maxItems": 55
}' |
apify call informed_almandine_vzb/yahoo-finance-sec-edgar-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,informed_almandine_vzb/yahoo-finance-sec-edgar-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/smmFlhvQ5bxbytKcb/builds/OV3Dz8kOHcFyHtSdp/openapi.json
