# Yahoo Finance Scraper: Stock Quotes, Fundamentals & History (`veenkes/veenkes-yahoo-finance`) Actor

Get Yahoo Finance data for stocks, ETFs, crypto, forex and indices: live price, change, volume, market cap, P/E, EPS, dividends, 52-week range, analyst targets, revenue, margins, sector, plus optional daily/weekly price history. One row per ticker, no API key.

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

## Pricing

from $0.30 / 1,000 ticker saveds

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/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: Stock Quotes, Fundamentals & History

A fast **Yahoo Finance scraper / stock API alternative**. Enter tickers and get **live price, change, volume, market cap, P/E, EPS, dividend yield, 52-week range, earnings date and analyst rating** for stocks, ETFs, crypto, forex and indices, plus **company fundamentals** (sector, revenue, margins, cash, debt, analyst price targets) and optional **OHLCV price history** with dividends and splits.

One clean row per ticker — history included at no extra cost. No API key, no browser.

### Why use this Yahoo Finance scraper?

- 📈 **Quotes for any Yahoo symbol**: US and global stocks, ETFs, crypto (`BTC-USD`), forex (`EURUSD=X`), indices (`^GSPC`).
- 🏢 **Fundamentals**: sector, industry, employees, revenue, margins, EBITDA, free cash flow, debt, ROE, ownership, officers.
- 🎯 **Analyst data**: mean/high/low price target, recommendation, analyst count.
- 🕰️ **History** from 1-minute to monthly bars, up to `max`, with dividends and splits — priced per ticker, not per bar.
- ⚡ **Batch quotes**: 100 tickers in seconds.
- 💸 **From $0.30 per 1,000 tickers.** No monthly rental.

### Who is it for?

- **Investors and analysts:** build screeners and watchlists in Google Sheets or Excel.
- **Developers:** a free-tier friendly Yahoo Finance API for apps and bots.
- **Quant hobbyists:** pull OHLCV history for backtests.
- **AI agents:** fetch market data on demand through Apify MCP.

### What data does it extract?

| Field | Example |
|---|---|
| `ticker`, `name`, `quoteType`, `exchange`, `currency`, `marketState` | `NVDA`, `NVIDIA Corporation`, `EQUITY`, `NasdaqGS` |
| `price`, `change`, `changePercent`, `open`, `dayHigh`, `dayLow`, `previousClose`, `volume`, `avgVolume3M` | live quote |
| `fiftyTwoWeekHigh`, `fiftyTwoWeekLow`, `fiftyDayAverage`, `twoHundredDayAverage` | ranges and averages |
| `marketCap`, `trailingPE`, `forwardPE`, `priceToBook`, `epsTrailing12Months`, `dividendYield`, `earningsDate`, `analystRating` | valuation |
| `sector`, `industry`, `employees`, `website`, `description`, `companyOfficers` | profile |
| `revenue`, `revenueGrowth`, `grossMargin`, `profitMargin`, `ebitda`, `freeCashflow`, `totalCash`, `totalDebt`, `returnOnEquity` | fundamentals |
| `targetMeanPrice`, `targetHighPrice`, `targetLowPrice`, `recommendation`, `analystCount` | analysts |
| `history`, `dividends`, `splits` | `[{"date": "2026-10-16T13:30:00.000Z", "open": 182.1, "close": 184.3, "volume": 151000000}]` |

### How to use it

1. Enter **tickers**.
2. Optionally turn on **price history** and pick range and interval.
3. Click **Start**, export to CSV/Excel/JSON or schedule it.

### Run it from the API

You can start this Actor from any language with the official [Apify API client](https://docs.apify.com/api/client/python). Replace `YOUR_APIFY_TOKEN` with a token from [Apify Console > Integrations](https://console.apify.com/account/integrations). Never put the token in a public repo.

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("veenkes/veenkes-yahoo-finance").call(run_input={
    "tickers": [
        "AAPL",
        "NVDA",
        "BTC-USD"
    ],
    "includeFundamentals": True,
    "includeHistory": True,
    "historyRange": "1y",
    "historyInterval": "1d"
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('veenkes/veenkes-yahoo-finance').call({
    "tickers": [
        "AAPL",
        "NVDA",
        "BTC-USD"
    ],
    "includeFundamentals": true,
    "includeHistory": true,
    "historyRange": "1y",
    "historyInterval": "1d"
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

Schedule the Actor, send results to a webhook, or connect it in Zapier, Make or n8n. Store page: <https://apify.com/veenkes/veenkes-yahoo-finance>.

### Use from AI agents (Apify MCP)

AI agents can run this Actor through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Connect Claude, Cursor or any MCP-compatible client to Apify, then ask the agent to call `veenkes/veenkes-yahoo-finance` with an input like the example above. The agent discovers the tool from the Actor title and description.

### How much does it cost?

| Apify plan tier | Price per 1,000 tickers |
|---|---|
| FREE | $0.60 |
| BRONZE | $0.50 |
| SILVER | $0.40 |
| GOLD and above | $0.30 |

There is also a $0.00005 start fee per run.

### Input example

```json
{
    "tickers": [
        "AAPL",
        "SPY",
        "BTC-USD",
        "EURUSD=X",
        "VOD.L"
    ],
    "includeFundamentals": true,
    "includeHistory": false
}
```

### Output example

```json
{
    "ticker": "AAPL",
    "name": "Apple Inc.",
    "quoteType": "EQUITY",
    "exchange": "NasdaqGS",
    "currency": "USD",
    "price": 354.87,
    "changePercent": -0.39,
    "marketCap": 5157035180032,
    "fiftyTwoWeekHigh": 360.83,
    "fiftyTwoWeekLow": 243.42,
    "sector": "Technology",
    "industry": "Consumer Electronics",
    "revenue": 478833999872,
    "targetMeanPrice": 345.63,
    "url": "https://finance.yahoo.com/quote/AAPL"
}
```

The key-value store record `SUMMARY` lists every input with its status and the number of items saved.

### Limitations

- Data comes from Yahoo Finance and may be delayed for some exchanges, as on the website.
- Intraday intervals are limited by Yahoo (1m: last 7 days; 5m/15m: last 60 days).
- Fundamentals apply to stocks, ETFs and funds; crypto and forex rows have quote data only.
- Not investment advice.

### Why this one?

Quote, fundamentals and full history in one row priced per ticker, at about half the price of other Yahoo Finance actors.

### FAQ

**Do I need a Yahoo account or API key?**
No.

**Which symbols work?**
Any symbol that opens on finance.yahoo.com/quote/<symbol>.

**Am I charged for invalid tickers?**
No, they are listed in the SUMMARY record and not charged.

***

### Integrations

- **Apify API** — Python and JavaScript clients (examples above), plus a REST API.
- **AI agents** — run it via the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp).
- **Automation tools** — Zapier, Make, n8n, or an Apify webhook when a run finishes.
- **Export** — download the dataset as JSON, CSV, Excel or XML, or load it from a scheduled run.

[Open the Actor in Apify Store](https://apify.com/veenkes/veenkes-yahoo-finance).

*Not affiliated with or endorsed by Yahoo. Data is provided as is and is not investment advice.*

# Actor input Schema

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

Yahoo Finance symbols: AAPL, NVDA, SPY, BTC-USD, EURUSD=X, ^GSPC, VOD.L, 7203.T…

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

Sector, industry, employees, revenue, margins, cash, debt, analyst targets, ownership and officers (stocks, ETFs, funds).

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

Add OHLCV bars, dividends and splits to each row.

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

How far back the price history goes.

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

Bar size of the price history.

## Actor input object example

```json
{
  "tickers": [
    "AAPL",
    "MSFT",
    "NVDA",
    "BTC-USD"
  ],
  "includeFundamentals": true,
  "includeHistory": false,
  "historyRange": "1mo",
  "historyInterval": "1d"
}
```

# Actor output Schema

## `tickers` (type: `string`):

No description

## `summary` (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 = {
    "tickers": [
        "AAPL",
        "MSFT",
        "NVDA",
        "BTC-USD"
    ]
};

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,veenkes/veenkes-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/0K5lGn57Bt6sJihE6/builds/dpJVHtcfgv0Y1jX9i/openapi.json
