vøiddo guidesAll Actors on Apify

Yahoo Finance Scraper: how to get Stock Quotes and Key Statistics as JSON/CSV (API, Python, no code)

Scrape Yahoo Finance quotes and key statistics for stocks, ETFs, indexes, crypto, currencies and futures: price, change, volume, market cap, P/E, EPS, dividend, 52 week range, analyst target, sector and next earnings date. This guide shows the output fields, a working input, and Python, JavaScript and cURL code for the Actor v0iddo/yahoo-finance-scraper on Apify.

Open Yahoo Finance Scraper on Apify

What data you get

One row per result. Every row can be downloaded as JSON, CSV, Excel or HTML, or read through the API.

FieldLabelTypeExample
symbolSymboltextAAPL
nameNametextApple Inc.
quoteTypeTypetextEQUITY
pricePricenumber347.725
currencyCurrencytextUSD
changePercentChange %number-0.14215012
volumeVolumenumber39539690
marketCapMarket capnumber5074761285632
trailingPEP/Enumber39.87672
dividendYieldDividend yield %number0.31
fiftyTwoWeekLow52 week lownumber243.42
fiftyTwoWeekHigh52 week highnumber351.73
regularMarketTimeQuote timedate2026-10-23T20:00:01Z
urlYahoo Finance pageURLhttps://finance.yahoo.com/quote/AAPL/
exchangetextNasdaqGS
marketStatetextOVERNIGHT
changenumber-0.49499512
previousClosenumber348.22
opennumber349.11
dayLownumber345.75
dayHighnumber351.73
averageVolumenumber43991589
forwardPEnumber36.365494
epsTrailingnumber8.72
dividendRatenumber1.08
exDividendDatetext2026-08-10
betanumber1.069
earningsDatetext2026-11-02
targetMeanPricenumber329.24768
recommendationtextbuy
sectortextTechnology
industrytextConsumer Electronics
scrapedAttext2026-10-26T04:30:36Z

Input example

This is the input that is pre-filled on the Actor page. Change the values for your own run.

{
  "tickers": [
    "AAPL",
    "MSFT",
    "NVDA",
    "AMZN",
    "GOOGL",
    "META",
    "TSLA",
    "SPY",
    "QQQ",
    "^GSPC",
    "BTC-USD",
    "EURUSD=X"
  ],
  "maxItems": 20
}
Input fieldTypeWhat it does
tickers (required)arrayYahoo Finance symbols, one per entry: stocks such as AAPL or BRK-B, ETFs such as SPY, indexes such as ^GSPC, crypto such as BTC-USD, currency pairs such as EURUSD=X an...
maxItemsintegerThe run stops after this many result rows.

Output sample

Real rows from a run of the Actor. Fields that name people are left out of the sample.

[
  {
    "symbol": "AAPL",
    "name": "Apple Inc.",
    "quoteType": "EQUITY",
    "exchange": "NasdaqGS",
    "currency": "USD",
    "marketState": "OVERNIGHT",
    "price": 347.725,
    "change": -0.49499512,
    "changePercent": -0.14215012,
    "previousClose": 348.22,
    "open": 349.11,
    "dayLow": 345.75,
    "dayHigh": 351.73,
    "fiftyTwoWeekLow": 243.42,
    "fiftyTwoWeekHigh": 351.73,
    "volume": 39539690,
    "averageVolume": 43991589,
    "marketCap": 5074761285632,
    "trailingPE": 39.87672,
    "forwardPE": 36.365494,
    "epsTrailing": 8.72,
    "dividendRate": 1.08,
    "dividendYield": 0.31,
    "exDividendDate": "2026-08-10",
    "beta": 1.069,
    "earningsDate": "2026-11-02",
    "targetMeanPrice": 329.24768,
    "recommendation": "buy",
    "sector": "Technology",
    "industry": "Consumer Electronics",
    "regularMarketTime": "2026-10-23T20:00:01Z",
    "url": "https://finance.yahoo.com/quote/AAPL/",
    "scrapedAt": "2026-10-26T04:30:36Z"
  },
  {
    "symbol": "MSFT",
    "name": "Microsoft Corporation",
    "quoteType": "EQUITY",
    "exchange": "NasdaqGS",
    "currency": "USD",
    "marketState": "OVERNIGHT",
    "price": 524.51,
    "change": 3.4299927,
    "changePercent": 0.6582468,
    "previousClose": 521.08,
    "open": 517.995,
    "dayLow": 515.7,
    "dayHigh": 525.77,
    "fiftyTwoWeekLow": 349.2,
    "fiftyTwoWeekHigh": 553.72,
    "volume": 13681067,
    "averageVolume": 25928984,
    "marketCap": 3894773022720,
    "trailingPE": 29.220612,
    "forwardPE": 22.128946,
    "epsTrailing": 17.95,
    "dividendRate": 3.92,
    "dividendYield": 0.75,
    "exDividendDate": "2026-11-19",
    "beta": 1.099,
    "earningsDate": "2026-10-28",
    "targetMeanPrice": 601.7281,
    "recommendation": "strong_buy",
    "sector": "Technology",
    "industry": "Software - Infrastructure",
    "regularMarketTime": "2026-10-23T20:00:01Z",
    "url": "https://finance.yahoo.com/quote/MSFT/",
    "scrapedAt": "2026-10-26T04:30:38Z"
  }
]

Code: Python, JavaScript and cURL

Get your API token in Apify Console under Settings, then Integrations. The Actor id is v0iddo/yahoo-finance-scraper.

Python (apify-client)

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {'tickers': ['AAPL',
             'MSFT',
             'NVDA',
             'AMZN',
             'GOOGL',
             'META',
             'TSLA',
             'SPY',
             'QQQ',
             '^GSPC',
             'BTC-USD',
             'EURUSD=X'],
 'maxItems': 20}

run = client.actor("v0iddo/yahoo-finance-scraper").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

JavaScript (apify-client)

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });

const input = {
  "tickers": [
    "AAPL",
    "MSFT",
    "NVDA",
    "AMZN",
    "GOOGL",
    "META",
    "TSLA",
    "SPY",
    "QQQ",
    "^GSPC",
    "BTC-USD",
    "EURUSD=X"
  ],
  "maxItems": 20
};

const run = await client.actor('v0iddo/yahoo-finance-scraper').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

cURL

curl -X POST "https://api.apify.com/v2/acts/v0iddo~yahoo-finance-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"tickers": ["AAPL", "MSFT", "NVDA", "AMZN", "GOOGL", "META", "TSLA", "SPY", "QQQ", "^GSPC", "BTC-USD", "EURUSD=X"], "maxItems": 20}'

Price

$1.00 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $0.70 per 1,000. See the pricing tab for your plan. A new Apify account gets $5 of platform credit every month.

Good to know

FAQ

What data does the Yahoo Finance Scraper return?

Each result is one row in an Apify dataset. Fields include symbol, name, quoteType, price, currency, changePercent, volume, marketCap, and more. The table above shows every field with an example value.

How do I use the Yahoo Finance Scraper from Python?

Install the apify-client package, create a client with your Apify API token, call the Actor v0iddo/yahoo-finance-scraper with an input like the one above, and read the rows from the run's dataset. The Python snippet above does exactly that.

Can I use it without writing code?

Yes. Open the Actor page on Apify, fill in the input form (an example is already filled in), press Start, and download the results as JSON, CSV, Excel or HTML. You can also schedule runs there.

How much does it cost?

$1.00 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $0.70 per 1,000. A new Apify account gets $5 of platform credit every month.

How do I limit the number of results?

Set the maxItems input field to the number of results you need; the run stops there, so it also caps the cost of one run. You can also set a maximum cost for a run in the run options on Apify, and the run stops when it is reached.

Can I send the results to Google Sheets, Make, Zapier or n8n?

Yes. Apify datasets connect to Google Sheets, Slack, Make, Zapier and n8n, and a webhook can call your own service when a run finishes. You can also export the dataset as JSON, CSV or Excel.

Open Yahoo Finance Scraper on Apify

Related guides