# Yahoo Finance Scraper - Stocks, Crypto, Price History, $0.50/1K (`dariandanciu/yahoo-finance-scraper`) Actor

Get stock, ETF, crypto, index and currency data from Yahoo Finance: price, market cap, P/E, EPS, dividends, revenue, margins and analyst targets, or daily, weekly and monthly price history. Tickers or company names, no API key. Pay only for rows returned.

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

## Pricing

from $0.35 / 1,000 result rows

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 - Stocks, Crypto, Price History, $0.50/1K

Get **stock, ETF, crypto, index and currency data** with no API key: **price, market cap, P/E, EPS, dividends, revenue, margins and analyst targets**, or **daily, weekly and monthly price history** going back decades.

### Why this one

- **$0.50 per 1,000 rows**, and less on paid plans. A full year of daily prices costs about 13 cents.
- **Tickers or names.** Type AAPL or just "tesla"; the Actor finds the ticker.
- **Over 50 fields per quote,** in plain numbers ready for a spreadsheet, not "5.01T".
- **Everything Yahoo lists:** global stocks, ETFs, indexes, crypto and currency pairs.
- **Adjusted close, dividends and splits** on every history row.
- **You only pay for rows.** Failed tickers are listed in `RUN_SUMMARY` and cost nothing.

### Input

| Field | Example |
|---|---|
| Tickers or company names | `AAPL`, `BRK-B`, `BMW.DE`, `^GSPC`, `BTC-USD`, `EURUSD=X`, `tesla` |
| Data | Quote and fundamentals, or price history |
| History range | 1 month to all available |
| History interval | 1 hour, 1 day, 1 week, 1 month |
| Max rows per ticker | `5000`, newest first |

Every field is optional except **Tickers or company names**.

### Output

One row per row. Example:

```json
{
    "source": "yahoo-finance",
    "id": "AAPL:quote",
    "symbol": "AAPL",
    "name": "Apple Inc.",
    "type": "EQUITY",
    "exchange": "NasdaqGS",
    "currency": "USD",
    "price": 344.43,
    "change": 0.25997925,
    "changePercent": 0.0755,
    "previousClose": 344.17,
    "open": 338.3,
    "dayLow": 338.3,
    "dayHigh": 345.79,
    "volume": 21847713,
    "averageVolume": 42717042,
    "marketCap": 5005319340032,
    "week52Low": 243.42,
    "week52High": 355.38,
    "average50Day": 335.458,
    "average200Day": 298.3351,
    "peRatio": 38.355236,
    "forwardPe": 32.34637,
    "priceToBook": 44.655777,
    "pegRatio": 2.83,
    "epsTrailing": 8.98,
    "epsForward": 10.64818,
    "beta": 1.089,
    "dividendRate": 1.08,
    "dividendYieldPercent": 0.31,
    "exDividendDate": "2026-11-12T00:00:00.000Z",
    "sharesOutstanding": 14532182000,
    "shortPercentOfFloat": 0.0091,
    "revenue": 478833999872,
    "revenueGrowth": 0.117,
    "grossMargin": 0.48786,
    "operatingMargin": 0.31125,
    "profitMargin": 0.27604,
    "ebitda": 171486003200,
    "freeCashFlow": 105658376192,
    "totalCash": 56722001920,
    "totalDebt": 94478999552,
    "returnOnEquity": 1.42257,
    "analystTargetMean": 332.6836,
    "analystTargetHigh": 405,
    "analystTargetLow": 250,
    "analystRating": "buy",
    "analystCount": 39,
    "nextEarningsDate": "2027-01-28T21:00:00.000Z",
    "sector": "Technology",
    "industry": "Consumer Electronics",
    "country": "United States",
    "website": "https://www.apple.com",
    "employees": 167000,
    "summary": "Apple Inc. designs, manufactures, and markets smartphones, personal computers, tablets, wearables, and accessories. The company offers iPhone, a line of smartphones; Mac, a line of personal computers; iPad, a line of multi-purpose tablets; and wearables, home, and accessories, including Apple Watch,...",
    "quotedAt": "2026-11-06T18:32:59.000Z",
    "url": "https://finance.yahoo.com/quote/AAPL/",
    "searchQuery": "AAPL"
}
```

Each row also has `searchQuery`: the search that found it. A summary of the run (rows per search, the site's total
for each search, and any searches that failed) is saved as `RUN_SUMMARY` in the key-value store.

Export to JSON, CSV, Excel or HTML from the Output tab, or use the API.

### Use cases

- **Portfolio tracking:** run your tickers on a schedule and keep a daily record.
- **Screening:** compare valuation, margins and growth across a list of companies.
- **Backtesting:** decades of adjusted prices with dividends and splits.
- **AI agents and dashboards:** clean market data without an API key or a quota.

### Pricing

Pay per row. See the Pricing tab. Searches that fail are free.

### Good to know

- ETFs, indexes, crypto and currency pairs have prices but no company financials, so those fields are empty.
- Quotes follow Yahoo, which can lag the market by up to 15 minutes on some exchanges.
- Margins and growth are fractions, so 0.27 means 27%. `changePercent` and `dividendYieldPercent` are already in percent.
- A company name uses Yahoo's top match. Use the ticker when you need a specific share class or exchange.
- This Actor reads public market data only. It does not log in and it does not collect any personal data. Data is for information only and is not investment advice.

### Feedback

Missing a field or a filter? Open an issue on the Issues tab.

### Related Actors

More sports and markets scrapers by the same developer, with the same pay-per-result pricing:

| Actor | What it gets |
|---|---|
| [Sports Betting Odds Scraper](https://apify.com/dariandanciu/sports-betting-odds-scraper) | Moneyline, spread and total with opening lines |
| [ESPN Scores and Standings Scraper](https://apify.com/dariandanciu/espn-scores-standings-scraper) | Scores and standings for major leagues |
| [Economic Calendar](https://apify.com/dariandanciu/economic-calendar-rate-decisions-releases) | Rate decisions and data releases in one format |
| [Tennis Results & Odds Scraper](https://apify.com/dariandanciu/tennis-results-scraper) | ATP, WTA, Challenger and ITF results with set scores and odds |
| [Prediction Markets Scraper](https://apify.com/dariandanciu/prediction-markets-scraper) | Polymarket and Kalshi odds, volume and liquidity |

For information only. This is not financial advice, and prices can be delayed or wrong, so check them before you act.

This is an independent tool. It is not affiliated with, endorsed by or sponsored by Yahoo. Names are used only to describe what the tool reads. Use it in line with the law and the terms that apply to you.

# Actor input Schema

## `searches` (type: `array`):

One per line. Tickers (AAPL, BRK-B, BMW.DE, ^GSPC, BTC-USD, EURUSD=X), company names (tesla) or Yahoo Finance links. Mix them freely.

## `maxResultsPerSearch` (type: `integer`):

Stop each ticker after this many rows.

## `mode` (type: `string`):

Quote gives one row per ticker with fundamentals. Price history gives one row per day, week or month.

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

Price history only.

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

Price history only. Hourly bars go back about 2 years.

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

Apify Proxy is recommended. If the site starts blocking, requests switch to residential proxies automatically.

## Actor input object example

```json
{
  "searches": [
    "AAPL",
    "BTC-USD"
  ],
  "maxResultsPerSearch": 5000,
  "mode": "quote",
  "historyRange": "1y",
  "historyInterval": "1d",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per row.

## `summary` (type: `string`):

Rows per search, and any searches that failed (not charged).

# 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 = {
    "searches": [
        "AAPL",
        "BTC-USD"
    ]
};

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dariandanciu/yahoo-finance-scraper"
        }
    }
}
```

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/2hyXoSQ2kuD6gkjZV/builds/O8FXViMOFy5bPTobg/openapi.json
