# Yahoo Finance Scraper - Quotes, Fundamentals & History (`goat255/yahoo-finance-scraper`) Actor

Get live quotes for stocks, ETFs, funds, indexes, currencies and crypto. One clean row per ticker with price, change, volume, market cap and 52 week range. Add fundamentals and daily price history.

- **URL**: https://apify.com/goat255/yahoo-finance-scraper.md
- **Developed by:** [Goutam Soni](https://apify.com/goat255) (community)
- **Categories:** Automation, Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.90 / 1,000 record scrapeds

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/platform/actors/running/actors-in-store#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

## Yahoo Finance Scraper

Get live market data for stocks, ETFs, funds, indexes, currencies and crypto. One clean row per ticker. No login and no API key.

### What it does

- **Live quotes** - price, change, percent change, day range, volume and average volume.
- **Valuation** - market cap, trailing and forward price to earnings, price to book, earnings per share and dividend yield.
- **52 week range** plus the 50 day and 200 day averages, so you can see where a price sits in its own trend.
- **Fundamentals on request** - sector, industry, country, employees, revenue and growth, margins, cash, debt, free cash flow, analyst target price and recommendation.
- **Price history on request** - daily, weekly or monthly bars going back as far as ten years or the full listed history, each bar its own row.
- **Ready made market lists** - day gainers, day losers, most active, most watched, most shorted and eleven more. Every ticker in the list is fetched.
- **Company search** - give a company name and the run finds its ticker for you.

Prices move all day, so schedule the run to build your own time series.

Common uses: portfolio and watchlist tracking, market screening, building a price dataset, valuation research, and monitoring a sector.

### Input

All three input modes are optional and can be combined in one run.

| Field | Type | Description |
|---|---|---|
| `symbols` | array | Ticker symbols. Stocks, ETFs, funds, indexes, currencies and crypto all work. |
| `screeners` | array | Ready made market lists to pull in full. |
| `maxResultsPerScreener` | integer | Cap per list. Default 100, up to 5000. |
| `searchTerms` | array | Company names to look up, then fetch. |
| `includeFundamentals` | boolean | Add sector, financials and analyst data to each row. |
| `includeHistory` | boolean | Add price bars as extra rows. |
| `historyRange` | string | `1d`, `5d`, `1mo`, `3mo`, `6mo`, `1y`, `2y`, `5y`, `10y`, `ytd`, `max`. |
| `historyInterval` | string | `1d`, `5d`, `1wk`, `1mo`, `3mo`. |
| `proxyConfiguration` | object | Optional. Enable to spread requests across IPs. |

#### Example input

```json
{
  "symbols": ["AAPL", "BTC-USD"],
  "screeners": ["most_actives"],
  "maxResultsPerScreener": 250,
  "includeFundamentals": true,
  "includeHistory": true,
  "historyRange": "6mo",
  "historyInterval": "1d"
}
```

### Output

Rows start with `symbol` and `type` so quotes and price bars are easy to split.

A quote:

```json
{
  "symbol": "EXMPL",
  "type": "quote",
  "name": "Example Corporation",
  "quoteType": "EQUITY",
  "exchange": "NasdaqGS",
  "currency": "USD",
  "price": 333.74,
  "change": 0.48,
  "changePercent": 0.144,
  "previousClose": 333.26,
  "open": 331.98,
  "dayHigh": 334.98,
  "dayLow": 329.0,
  "volume": 63325386,
  "averageVolume3Month": 54830800,
  "fiftyTwoWeekHigh": 334.99,
  "fiftyTwoWeekLow": 201.5,
  "fiftyTwoWeekChangePercent": 57.07,
  "fiftyDayAverage": 302.65,
  "twoHundredDayAverage": 274.22,
  "marketCap": 4900000000000,
  "trailingPE": 40.1,
  "forwardPE": 33.6,
  "priceToBook": 58.2,
  "epsTrailingTwelveMonths": 8.32,
  "dividendYield": 0.31,
  "marketState": "REGULAR",
  "quoteTime": "2026-07-18T20:00:02Z",
  "earningsDate": "2026-10-29T00:00:00Z",
  "url": "https://finance.yahoo.com/quote/EXMPL"
}
```

With `includeFundamentals` each quote also carries `sector`, `industry`, `country`, `website`, `employees`, `description`, `beta`, `pegRatio`, `profitMargin`, `revenue`, `revenueGrowth`, `earningsGrowth`, `returnOnEquity`, `totalCash`, `totalDebt`, `debtToEquity`, `freeCashflow`, `targetMeanPrice`, `recommendation` and `analystCount`.

A price bar:

```json
{
  "symbol": "EXMPL",
  "type": "history",
  "date": "2026-07-17T13:30:00Z",
  "open": 331.98,
  "high": 334.98,
  "low": 329.0,
  "close": 333.74,
  "adjustedClose": 333.74,
  "volume": 63325386,
  "currency": "USD"
}
```

### Notes

- No login and no API key. Enter tickers and run.
- Tickers are deduplicated across all three input modes, so a ticker reached two ways is returned once.
- Tickers that are not listed are reported and skipped rather than returned as empty rows.
- Fundamentals apply to companies, so currencies, indexes and crypto return `null` for those fields.
- Periods where an instrument did not trade are left out of the history rather than returned as blank rows.

### Privacy

To improve our actors we collect anonymized usage telemetry (run stats and input patterns). No personal account data is collected.

# Actor input Schema

## `symbols` (type: `array`):

Ticker symbols to fetch. Works for stocks, ETFs, funds, indexes, currencies and crypto.

## `screeners` (type: `array`):

Ready made market lists. Every ticker in the list is fetched.

## `maxResultsPerScreener` (type: `integer`):

Cap per market list.

## `searchTerms` (type: `array`):

Look up tickers by company name, then fetch them. Useful when you know the company but not the symbol.

## `includeFundamentals` (type: `boolean`):

Add sector, industry, employees, revenue, margins, debt, analyst target and recommendation to each row.

## `includeHistory` (type: `boolean`):

Add historical price bars as extra rows, one row per period.

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

How far back to pull price history.

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

One bar per this period.

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

Optional. Enable to spread requests across IP addresses.

## Actor input object example

```json
{
  "symbols": [
    "AAPL",
    "BTC-USD"
  ],
  "maxResultsPerScreener": 100,
  "searchTerms": [
    "example corporation"
  ],
  "includeFundamentals": false,
  "includeHistory": false,
  "historyRange": "1mo",
  "historyInterval": "1d"
}
```

# Actor output Schema

## `records` (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 = {
    "symbols": [
        "AAPL",
        "MSFT"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("goat255/yahoo-finance-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 = { "symbols": [
        "AAPL",
        "MSFT",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("goat255/yahoo-finance-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "symbols": [
    "AAPL",
    "MSFT"
  ]
}' |
apify call goat255/yahoo-finance-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=goat255/yahoo-finance-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/GGylIcEbCEccXGM0v/builds/gNB2bcfJ8VtLpsoLa/openapi.json
