# Yahoo Finance Scraper (`vashiiq/yahoo-finance`) Actor

Yahoo Finance quotes, price history, income statements and option chains for many tickers at once, with clean numbers and ISO dates.

- **URL**: https://apify.com/vashiiq/yahoo-finance.md
- **Developed by:** [anthony leblanc](https://apify.com/vashiiq) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 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.

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 Scraper

Get Yahoo Finance data for many tickers at once: live quotes, daily/weekly/monthly price history, income statements and option chains, as clean numbers with ISO dates.

### What it does

- Quotes: price, change, volume, market cap, P/E, EPS, 52-week range and more.
- Price history: open, high, low, close, adjusted close and volume.
- Financials: annual and quarterly revenue, gross profit, operating income, net income, EBIT, R\&D, EPS and free cash flow, plus analyst target and recommendation.
- Options: every call and put for the next expirations, with bid, ask, open interest and implied volatility.
- Handles Yahoo’s cookie and crumb automatically, with retries.

**Why this one:** Quotes, history, financials and options in one Actor for many tickers at once, with numbers as numbers and ISO dates, and automatic handling of Yahoo’s cookie and crumb.

In our last check, 20 runs over varied inputs succeeded 100% of the time.

### Use cases

- Screening and watchlists
- Backtests and charts from clean price history
- Pulling fundamentals for many companies into a spreadsheet

### Input example

```json
{
  "tickers": [
    "AAPL",
    "MSFT",
    "NVDA"
  ],
  "modules": [
    "quote"
  ],
  "maxItems": 3
}
```

- tickers: any Yahoo symbols (stocks, ETFs, indexes, crypto, FX)
- modules: quote, history, financials, options
- historyRange + historyInterval
- optionExpirations

### Output sample

Real results from a run of this Actor:

```json
[
  {
    "type": "quote",
    "symbol": "AAPL",
    "name": "Apple Inc.",
    "exchange": "NasdaqGS",
    "quoteType": "EQUITY",
    "currency": "USD",
    "marketState": "POST",
    "price": 347.1,
    "change": 3.1900024,
    "changePercent": 0.927569,
    "previousClose": 343.91,
    "open": 343.165,
    "dayHigh": 347.78,
    "dayLow": 342.39,
    "volume": 33444253,
    "avgVolume3m": 43883873,
    "marketCap": 5065640247296,
    "peTrailing": 39.805046,
    "peForward": 36.29823,
    "eps": 8.72,
    "dividendYield": 0.0030531243,
    "fiftyTwoWeekHigh": 351.73,
    "fiftyTwoWeekLow": 243.42,
    "marketTime": "2026-10-27T20:00:01.000Z",
    "url": "https://finance.yahoo.com/quote/AAPL",
    "sourceUrl": "https://query2.finance.yahoo.com/v7/finance/quote",
    "scrapedAt": "2026-10-27T20:05:07.605Z"
  },
  {
    "type": "quote",
    "symbol": "MSFT",
    "name": "Microsoft Corporation",
    "exchange": "NasdaqGS",
    "quoteType": "EQUITY",
    "currency": "USD",
    "marketState": "POST",
    "price": 531.33,
    "change": -1.2699585,
    "changePercent": -0.2384451,
    "previousClose": 532.6,
    "open": 532.35,
    "dayHigh": 534.7,
    "dayLow": 528.331,
    "volume": 17025471,
    "avgVolume3m": 25787701,
    "marketCap": 3945415311360,
    "peTrailing": 29.600557,
    "peForward": 22.428717,
    "eps": 17.95,
    "dividendYield": 0.006834398,
    "fiftyTwoWeekHigh": 553.72,
    "fiftyTwoWeekLow": 349.2,
    "marketTime": "2026-10-27T20:00:01.000Z",
    "url": "https://finance.yahoo.com/quote/MSFT",
    "sourceUrl": "https://query2.finance.yahoo.com/v7/finance/quote",
    "scrapedAt": "2026-10-27T20:05:07.606Z"
  }
]
```

**Fields:**

- Every row: type, symbol, url
- quote: name, exchange, currency, price, change, changePercent, volume, marketCap, P/E, EPS, 52-week range, marketTime
- history: date, open, high, low, close, adjClose, volume
- financials: period, periodEnd, revenue, gross profit, operating income, net income, plus cash, debt, margins, analyst target
- option: contract, side, expiration, strike, bid, ask, volume, openInterest, impliedVolatility

### Pricing

Pay per result: **$1.50 per 1,000 results**. You pay only for results you get; Apify platform costs are included. Set a maximum charge for a run and the Actor stops cleanly when it's reached, keeping everything collected so far.

### Tips

- Use Yahoo’s symbols: BRK-B, ^GSPC for the S\&P 500, BTC-USD for Bitcoin, EURUSD=X for currencies.
- Every row has a type field (quote, history, financials, option) so you can filter in one dataset.
- Funds, indexes and crypto have no financial statements; the run notes that and moves on.

### FAQ

**Do I need an account on Yahoo Finance?** No. It only reads public pages and data.

**Is this investment advice?** No. It returns public market data for your own analysis.
**Something broke or a field is missing?** Open an issue on the Issues tab and include your run link. We fix scrapers quickly when sites change.

### Legal

This Actor collects publicly available data only. You're responsible for using it lawfully and in line with Yahoo Finance's terms.

# Actor input Schema

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

Symbols as Yahoo writes them, e.g. AAPL, MSFT, BRK-B, ^GSPC, BTC-USD, EURUSD=X.

## `modules` (type: `array`):

Pick any of: quote (live price and stats), history (daily/weekly/monthly prices), financials (income statements), options (option chains).

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

Price history only: how far back.

## `historyInterval` (type: `string`):

Price history only: one row per day, week or month.

## `optionExpirations` (type: `integer`):

Options only: how many upcoming expiration dates per ticker.

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

Stop after this many rows. You are only charged for rows you get.

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

Datacenter proxy helps if Yahoo rate-limits you.

## Actor input object example

```json
{
  "tickers": [
    "AAPL",
    "MSFT",
    "NVDA"
  ],
  "modules": [
    "quote"
  ],
  "historyRange": "1mo",
  "historyInterval": "1d",
  "optionExpirations": 1,
  "maxItems": 10000,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Quotes, history, financials and option rows (each has a type field).

# 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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("vashiiq/yahoo-finance").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",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("vashiiq/yahoo-finance").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"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call vashiiq/yahoo-finance --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vashiiq/yahoo-finance"
        }
    }
}
```

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/xp6wnuqhUMwsmGxYX/builds/0iFHb2Pux0ffhzCDM/openapi.json
