# Yahoo Finance Scraper — Live Quotes & Price History (`hipersoft/yahoo-finance-scraper`) Actor

Get live stock, ETF, crypto, forex and index quotes from Yahoo Finance by ticker: price, day and 52-week range, volume, exchange and change %, plus optional OHLCV price history. Public data — no login, no API key.

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

## Pricing

from $0.00072 / symbol scraped

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 — Live Quotes & Price History

Pull live market data for any ticker from Yahoo Finance. Give the Actor a list of
symbols and it returns each one's **price, day change, day range, 52-week range,
volume, exchange and market state** — plus optional **OHLCV price history**. Works
for stocks, ETFs, crypto, forex and indices. Public data, so **no login, no API key**.

Great for **portfolio tracking, market dashboards, quant datasets, alerting and
research**.

### What you get per symbol

| Field | Notes |
|---|---|
| `price`, `previousClose` | Latest price and prior close. |
| `change`, `changePercent` | Absolute and % move vs previous close. |
| `dayHigh`, `dayLow`, `volume` | Regular-session day stats. |
| `fiftyTwoWeekHigh`, `fiftyTwoWeekLow` | 52-week range. |
| `name`, `currency`, `exchange`, `marketState` | Instrument info + REGULAR/CLOSED/PRE/POST. |
| `marketTime` | Timestamp of the quote (ISO 8601). |
| `history` | Optional OHLCV array (`date, open, high, low, close, adjClose, volume`). |

### Input

```json
{
  "symbols": ["AAPL", "MSFT", "BTC-USD", "EURUSD=X", "^GSPC"],
  "includeHistory": true,
  "interval": "1d",
  "range": "6mo"
}
```

- **symbols** — Yahoo tickers, one per line. Stocks (`AAPL`), ETFs (`SPY`), crypto (`BTC-USD`), forex (`EURUSD=X`), indices (`^GSPC`).
- **includeHistory** — attach an OHLCV candle array (default off = quote only).
- **interval** — candle size (`1m`…`1mo`) for history.
- **range** — how far back (`1d`…`max`) for history.
- **maxConcurrency** — symbols fetched in parallel.
- **proxyConfiguration** — optional; only if you hit rate limits.

### Output (one row per symbol)

```json
{
  "symbol": "AAPL",
  "name": "Apple Inc.",
  "currency": "USD",
  "exchange": "NasdaqGS",
  "marketState": "REGULAR",
  "price": 315.32,
  "previousClose": 312.10,
  "change": 3.22,
  "changePercent": 1.03,
  "dayHigh": 316.4,
  "dayLow": 311.8,
  "volume": 48213000,
  "fiftyTwoWeekHigh": 320.1,
  "fiftyTwoWeekLow": 210.4,
  "marketTime": "2026-07-10T20:00:00.000Z",
  "found": true
}
```

### FAQ

**Do I need an API key or Yahoo Finance account?**
No. The Actor reads public [Yahoo Finance](https://finance.yahoo.com) market data, so there's no login and no API key. A proxy is optional and only needed if you hit rate limits.

**How many symbols can I fetch per run?**
There's no fixed cap — pass as many tickers as you like (one per line) and tune `maxConcurrency` to control how many are fetched in parallel. Symbols that don't exist come back with `found: false`.

**How fresh is the data?**
Quotes are pulled live at run time and include a `marketState` (REGULAR/CLOSED/PRE/POST) plus a `marketTime` ISO timestamp, so you always know when the price was captured.

**Is this official Yahoo Finance data?**
The data is provided by Yahoo Finance for personal/informational use, but this Actor is an independent tool and is not affiliated with or endorsed by Yahoo. It is not investment advice.

**What's the output format?**
Flat JSON, one row per symbol, with price, day change, day range, 52-week range, volume and exchange — plus an optional OHLCV `history` array. Export as JSON, CSV or Excel.

### Related Actors

More market-data scrapers from the same publisher:

- [CoinGecko Scraper](https://apify.com/hipersoft/coingecko-scraper) — live crypto prices, market cap, volume and ATH/ATL.
- [DefiLlama Scraper](https://apify.com/hipersoft/defillama-scraper) — DeFi protocols, yields, chains and stablecoins with TVL and APY.
- [SEC EDGAR Filings Scraper](https://apify.com/hipersoft/sec-edgar-scraper) — 10-K, 10-Q and 8-K filings by ticker or CIK.

### Notes

Symbols that don't exist return a row with `found: false`. Data is provided by Yahoo
Finance for personal/informational use — respect their terms; not investment advice.

# Actor input Schema

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

Yahoo Finance tickers: stocks (AAPL, MSFT), ETFs (SPY), crypto (BTC-USD), forex (EURUSD=X), indices (^GSPC). One per line.

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

Attach an OHLCV candle array (per the interval/range below) to each symbol. Off = live quote only.

## `interval` (type: `string`):

Candle size for history.

## `range` (type: `string`):

How far back the history goes.

## `maxConcurrency` (type: `integer`):

How many symbols to fetch in parallel.

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

Optional. Yahoo's public feed works from datacenter IPs; enable a proxy only if you hit rate limits.

## Actor input object example

```json
{
  "symbols": [
    "AAPL",
    "MSFT",
    "BTC-USD"
  ],
  "includeHistory": false,
  "interval": "1d",
  "range": "1mo",
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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",
        "BTC-USD"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/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",
        "BTC-USD",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/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",
    "BTC-USD"
  ]
}' |
apify call hipersoft/yahoo-finance-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/409KEP3h3agUQL355/builds/McVGyBSoWRLAg4Mjh/openapi.json
