# Yahoo Finance Stock & Crypto Prices Scraper (`scrapers_lat/yahoo-finance-scraper`) Actor

Extract Yahoo Finance stock and crypto market data by symbol: price, change, market cap, PE, EPS, 52-week range, volume, supply and OHLCV history. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/scrapers\_lat/yahoo-finance-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** Automation, Other, Developer tools
- **Stats:** 2 total users, 1 monthly users, 93.1% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.23 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Stock & Crypto Prices Scraper](https://scrapers.lat/banners/yahoo-finance-scraper.png)](https://console.apify.com/actors/Z3F7rwN3h9cfU6Rke/input)

## Yahoo Finance Stock & Crypto Prices Scraper

> Extract live Yahoo Finance market data for any stock, ETF, index or crypto symbol, from a single AAPL to hundreds of tickers in one run.

**📥 [Input](https://apify.com/scrapers_lat/yahoo-finance-scraper/input-schema) · 📤 [Output](https://apify.com/scrapers_lat/yahoo-finance-scraper/output-schema) · 💰 [Pricing](https://apify.com/scrapers_lat/yahoo-finance-scraper/pricing) · ▶️ [Examples](https://apify.com/scrapers_lat/yahoo-finance-scraper/examples)**

![Apify](https://img.shields.io/badge/Platform-Apify-1CE1CE?logo=apify\&logoColor=white)
![Coverage](https://img.shields.io/badge/Coverage-Global%20markets-blue)
![Maintained](https://img.shields.io/badge/Maintained-Yes-brightgreen)
![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange)

<table><tr>
<td align="center"><strong>35 fields</strong><br>per record</td>
<td align="center"><strong>Stocks + crypto</strong><br>coverage</td>
<td align="center"><strong>JSON / CSV / Excel</strong><br>output formats</td>
</tr></table>

<br>

### Who is it for

| Use case | Who benefits |
|---|---|
| Build a live portfolio or watchlist dashboard | Retail investors and fintech builders |
| Pull daily closing prices into a spreadsheet | Analysts and accountants |
| Backtest strategies on historical OHLCV data | Quant traders and researchers |
| Track crypto price, market cap and supply | Crypto desks and treasury teams |
| Feed market data into an AI agent or model | Developers and data teams |

### Frequently Asked Questions

**Which symbols and markets does it cover?**
Any ticker that exists on Yahoo Finance: US and international stocks, ETFs, mutual funds, indices such as ^GSPC, currency pairs such as EURUSD=X, and cryptocurrencies quoted as BTC-USD or ETH-USD. Mix stocks and crypto freely in one run.

**How many symbols can I request in one run?**
Hundreds. Symbols are fetched in efficient batches, so a list of a few hundred tickers returns in a single quick run. Use Max Items to cap how many symbols are processed.

**Can I get historical prices, not just the live quote?**
Yes. Pick a History Range (for example 1mo, 1y or max) and a candle interval, and every record gets a history array of open, high, low, close, adjusted close and volume. Leave the range empty for a faster quote-only run.

**Why are some fields empty on crypto or on certain stocks?**
Fields are asset-specific. Crypto records include circulating and max supply but no price-to-earnings ratio, while equities include valuation and dividend fields but no supply. A stock that pays no dividend simply has an empty dividend yield.

**What happens if a symbol is misspelled or delisted?**
That symbol gets its own record with an error message instead of prices, and the rest of the run continues normally, so one bad ticker never breaks the batch.

### Example use cases

Ready-to-run example tasks, each preconfigured for a common scenario. Open one and press run, or use it as a template:

- [Tech Stocks AAPL MSFT NVDA Live Prices](https://apify.com/scrapers_lat/yahoo-finance-scraper/examples/tech-stocks-aapl-msft-nvda): Scrape live prices for Apple, Microsoft, Nvidia, Google and Amazon with quotes, market cap, PE ratio, day range and volume from Yahoo Finance.
- [Crypto Prices BTC ETH SOL XRP DOGE](https://apify.com/scrapers_lat/yahoo-finance-scraper/examples/crypto-prices-btc-eth-sol): Scrape live cryptocurrency prices for Bitcoin, Ethereum, Solana, XRP and Dogecoin with market cap, volume and 24h change from Yahoo Finance.
- [Dividend Stocks JNJ KO PG XOM VZ Data](https://apify.com/scrapers_lat/yahoo-finance-scraper/examples/dividend-stocks-jnj-ko-pg): Scrape dividend stock data for Johnson and Johnson, Coca-Cola, Procter and Gamble, Exxon and Verizon with yield, PE ratio and price from Yahoo Finance.
- [Stock Market Indices S\&P 500 Dow Nasdaq](https://apify.com/scrapers_lat/yahoo-finance-scraper/examples/stock-market-indices-sp500-dow): Scrape live values for the S\&P 500, Dow Jones, Nasdaq Composite and Russell 2000 indices with day range and change from Yahoo Finance.
- [Tesla TSLA Stock Price History 1 Year](https://apify.com/scrapers_lat/yahoo-finance-scraper/examples/tesla-stock-price-history-1y): Scrape Tesla TSLA stock quote plus one year of daily OHLCV price history with open, high, low, close and volume from Yahoo Finance.
- [EV Automaker Stocks TSLA RIVN LCID F GM](https://apify.com/scrapers_lat/yahoo-finance-scraper/examples/ev-automaker-stocks-tsla-rivn): Scrape electric vehicle and automaker stocks including Tesla, Rivian, Lucid, Ford and GM with live price, market cap and volume from Yahoo Finance.
- [Bank Stocks JPM BAC WFC GS MS Prices](https://apify.com/scrapers_lat/yahoo-finance-scraper/examples/bank-stocks-jpm-bac-wfc): Scrape bank stock prices for JPMorgan, Bank of America, Wells Fargo, Goldman Sachs and Morgan Stanley with PE ratio and yield from Yahoo Finance.
- [Semiconductor Stocks NVDA AMD INTC TSM](https://apify.com/scrapers_lat/yahoo-finance-scraper/examples/semiconductor-stocks-nvda-amd): Scrape semiconductor stocks Nvidia, AMD, Intel, TSMC and Broadcom with live price, market cap, PE ratio and volume from Yahoo Finance.
- [Forex Currency Pairs EUR GBP JPY Rates](https://apify.com/scrapers_lat/yahoo-finance-scraper/examples/forex-currency-pairs-eur-gbp-jpy): Scrape live forex exchange rates for EUR USD, GBP USD and USD JPY currency pairs with day range and change from Yahoo Finance.
- [Top ETF Prices SPY QQQ VOO VTI Data](https://apify.com/scrapers_lat/yahoo-finance-scraper/examples/top-etf-prices-spy-qqq-voo): Scrape top ETF prices for SPY, QQQ, VOO and VTI with net assets, expense data, day range and volume from Yahoo Finance.

### Related scrapers

Need data from the same space? Here are other scrapers we build and maintain:

- [B3 Brazil Stock Tickers & Listed Company Scraper](https://apify.com/scrapers_lat/b3-scraper): Tickers and listed company data from Brazil's B3 exchange.
- [Argentina Dollar Blue & Oficial Exchange Rate Scraper](https://apify.com/scrapers_lat/argentina-dolar-scraper): Live blue, oficial, MEP and crypto dollar rates with history.
- [BCRA Argentina Central de Deudores Credit Risk Scraper](https://apify.com/scrapers_lat/bcra-deudores-scraper): Credit risk and debtor status from Argentina's central bank.
- [FEC Campaign Finance Scraper: Donors & Committees](https://apify.com/scrapers_lat/fec-campaign-finance-scraper): US political donors, committees and contribution records.
- [eBay Product Listings & Price Scraper](https://apify.com/scrapers_lat/ebay-scraper): Product listings, prices and seller data from eBay.
- [FMCSA Motor Carrier & USDOT Number Scraper (USA)](https://apify.com/scrapers_lat/fmcsa-carriers-scraper): US motor carrier profiles and USDOT registration data.

### More scrapers at scrapers.lat

This actor is built and maintained by [scrapers.lat](https://scrapers.lat), where we publish scrapers for Latin American and US public platforms: real estate, jobs, e-commerce, company registries and government data. Browse the full catalog, see live sample output for each one, or ask us for a custom scraper at [scrapers.lat](https://scrapers.lat).

***

> This actor is an independent tool and has no affiliation with Yahoo Finance. It only accesses data that is publicly available on the platform. Use it in accordance with Yahoo Finance's terms of service.

# Actor input Schema

## `maxQuotes` (type: `integer`):

Maximum number of quotes (symbols) to process. Optional.

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

Ticker symbols to look up. Works for stocks and ETFs (AAPL, MSFT, TSLA, SPY), crypto (BTC-USD, ETH-USD), indices (^GSPC) and currency pairs (EURUSD=X).

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

Include an OHLCV price-history array for each symbol over this time range. Leave empty to fetch the live quote only (faster).

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

Candle interval for the price-history array (only used when a history range is selected). Intraday intervals (1m to 1h) are only available for short ranges.

## Actor input object example

```json
{
  "maxQuotes": 10,
  "symbols": [
    "AAPL",
    "MSFT",
    "BTC-USD",
    "ETH-USD"
  ],
  "range": "",
  "interval": "1d"
}
```

# Actor output Schema

## `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 = {
    "maxQuotes": 10,
    "symbols": [
        "AAPL",
        "MSFT",
        "BTC-USD",
        "ETH-USD"
    ]
};

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

# Run the Actor and wait for it to finish
run = client.actor("scrapers_lat/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 '{
  "maxQuotes": 10,
  "symbols": [
    "AAPL",
    "MSFT",
    "BTC-USD",
    "ETH-USD"
  ]
}' |
apify call scrapers_lat/yahoo-finance-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/Z3F7rwN3h9cfU6Rke/builds/K2Ka7o30itcw42UTQ/openapi.json
