Skip to the content

Scraper API

Yahoo Finance

yahoo_finance.historyAvailable

Yahoo Finance price history

The price bars, oldest first: open, high, low, close, adjusted close and volume, with dividends and splits on the bars they took effect in.

Give it a symbol, how far back to go, and the length of one bar.

1 unit a run, for runs that return data. Runs that fail cost nothing. How units work

Counted
1 unit a run
Inputs
3, 1 required
Record
13 fields
A run takes
up to 5 minutes
Records kept
7 days
Measured
its success, on the status page

POST/v1/scrapers/yahoo_finance.history/runs

{
"input": {
"symbol": "AAPL",
"range": "1mo",
"interval": "1d"
}
}

sent, and answered

a record of the run13 fields

{
symbol: "AAPL"
time: "2026-10-19T13:30:00Z"
open: 340.78
high: 346
low: 340.12
close: 342.94
adjusted_close: 342.6796
volume: 34573200
dividend: null
… 4 more fields

ok1 unit a run

A record this scraper returned for this input. The first 9 of its 13 fields are set down here; the whole record is below.

finance.yahoo.com
The page Yahoo Finance price history reads, as a browser shows it
The page this scraper reads, photographed in a browser on 19 November 2026. It belongs to its publisher, who has no part in this service.

What it is used for

Chart a price history
Open, high, low, close and volume for each bar over the range asked for, from one-minute bars to monthly ones, oldest first.
Back-test a strategy
Daily bars with adjusted_close, and the dividend and split on the day each took effect, so returns can be counted correctly.
Compare instruments
Read the same range for shares, indices, currency pairs and cryptocurrencies and set their closes side by side, each in its own currency.

What you send

A symbol, how far back to go, and the length of one bar. These are its 3 inputs, as its schema has them.

symbolstring Required
The instrument's symbol on Yahoo Finance, e.g. AAPL, 7203.T, BTC-USD, ^GSPC; or the address of its page.
rangestring Optional
How far back: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd (since 1 January) or max (everything).Default 1mo
intervalstring Optional
The length of one bar: 1m, 5m, 15m, 30m, 1h, 1d, 1wk or 1mo. Intervals shorter than a day are served for recent ranges only.Default 1d

A request, ready to send

It starts a run with the input shown at the top of this page, waits up to 60 seconds for it, and reads its records. Put your key in the variable it reads.

# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/yahoo_finance.history/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"symbol":"AAPL","range":"1mo","interval":"1d"}}'

# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
from enrichednow import EnrichedNow

client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY

# Start a run, wait for it to end, and get its records
result = client.scrape("yahoo_finance.history", {
    "symbol": "AAPL",
    "range": "1mo",
    "interval": "1d",
})
print(result.run.id, result.run.status, result.run.record_count)

# Read its records: pages are fetched as you go
for record in result.records:
    print(record)

Install it with pip install enrichednow, then save as run.py and run python3 run.py

import EnrichedNow from "enrichednow";

const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY

// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("yahoo_finance.history", {
  symbol: "AAPL",
  range: "1mo",
  interval: "1d",
});
console.log(run.id, run.status, run.record_count);

// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);

Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

package main

import (
	"context"
	"fmt"
	"log"
	"time"

	enrichednow "github.com/enrichednow/enrichednow-go"
)

func main() {
	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
	if err != nil {
		log.Fatal(err)
	}
	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
	defer cancel()

	// Start a run, wait for it to end, and get its records
	run, records, err := client.Scrape(ctx, "yahoo_finance.history", map[string]any{"symbol": "AAPL", "range": "1mo", "interval": "1d"})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(run.ID, run.Status, run.RecordCount)

	// Read its records: pages are fetched as you go
	for records.Next() {
		fmt.Println(string(records.Current()))
	}
	if err := records.Err(); err != nil {
		log.Fatal(err)
	}
}

Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;

public class Run {
    public static void main(String[] args) {
        EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY

        // Start a run, wait for it to end, and get its records
        ScrapeResult result = client.scrape("yahoo_finance.history", Map.of("symbol", "AAPL", "range", "1mo", "interval", "1d"));
        System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());

        // Read its records: pages are fetched as you go
        for (Map<String, Object> record : result.records()) {
            System.out.println(record);
        }
    }
}

Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

enrichednow run yahoo_finance.history --input symbol=AAPL --input range=1mo --input interval=1d

Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

What comes back

The price bars, oldest first: open, high, low, close, adjusted close and volume, with dividends and splits on the bars they took effect in. A record has 13 fields. One we could not read is null, never an empty string or a zero.

A record yahoo_finance.history returned
{
  "symbol": "AAPL",
  "time": "2026-10-19T13:30:00Z",
  "open": 340.78,
  "high": 346,
  "low": 340.12,
  "close": 342.94,
  "adjusted_close": 342.6796,
  "volume": 34573200,
  "dividend": null,
  "split": null,
  "currency": "USD",
  "interval": "1d",
  "fetched_at": "2026-11-19T18:07:42.720609Z"
}

The scraper returned this record for the input above, reading a saved copy of the page, not the live site.

The fields of a record

symbolstring
Yahoo Finance's symbol of the instrument.
timedatetime
When the interval began, in UTC. A daily bar begins when the exchange's session opens.
opennumber or null
The first price of the interval.
highnumber or null
The highest price of the interval.
lownumber or null
The lowest price of the interval.
closenumber or null
The last price of the interval.
adjusted_closenumber or null
The close adjusted for later dividends and splits. Given for intervals of a day or longer.
volumeinteger or null
The number of units traded in the interval.
dividendnumber or null
The dividend per share that went ex-dividend in this interval, when one did.
splitstring or null
The share split that took effect in this interval, as new:old, e.g. 4:1.
currencystring or null
The currency the prices are in.
intervalstring
The length of the interval, as asked for: 1d, 1h, 1wk, …
fetched_atdatetime
When the history was read, in UTC.

The whole schema, in its reference

Units and limits

Counted per request
Billed per request: a run that returns data costs 1 unit, however many records it returns.
A miss costs nothing
A run that fails, that meets something not supported yet, or that you cancel costs nothing. You pay for runs that return data.
What bounds a run
A run may take up to 5 minutes. Its records are read in pages of up to 1,000 and are kept for 7 days.

What it does not do

  • One run returns one range at one interval, up to 20,000 bars.
  • Intervals shorter than a day are served for recent ranges only: one-minute bars for the last 8 days, hourly bars for the last 730 days.
  • An interval in which nothing traded has no bar.

The bounds its schema sets

range
1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max; 1mo unless you say otherwise
interval
1m, 5m, 15m, 30m, 1h, 1d, 1wk, 1mo; 1d unless you say otherwise

Scraper API pricing: how units workThe five ways a run ends

Questions

What does Yahoo Finance price history return?

The price bars, oldest first: open, high, low, close, adjusted close and volume, with dividends and splits on the bars they took effect in. A record has 13 fields, among them symbol, time, open, high, low and close. A value that could not be read is null, never an empty string or a zero.

What do I send?

A symbol, how far back to go, and the length of one bar. The input symbol is required. Optional: range and interval.

How is it counted?

Billed per request: a run that returns data costs 1 unit, however many records it returns. A run that fails, that meets something not supported yet, or that you cancel costs nothing. The first 1,000 units each month are free.

How much does one run return?

Its schema sets these bounds: range 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max (1mo unless you say otherwise); interval 1m, 5m, 15m, 30m, 1h, 1d, 1wk, 1mo (1d unless you say otherwise). A run may take up to 5 minutes.

What does it not do?

One run returns one range at one interval, up to 20,000 bars. Intervals shorter than a day are served for recent ranges only: one-minute bars for the last 8 days, hourly bars for the last 730 days. An interval in which nothing traded has no bar.

How long are the records kept, and in what format do they come?

Records are kept for 7 days after the run ended, and read in pages of up to 1,000. They come as JSON, as NDJSON with one record a line, or as CSV with a column for each field.

Can an AI assistant call it?

Yes. Through the EnrichedNow MCP server an assistant calls the tool run_scraper with the scraper_id yahoo_finance.history and the same input. It costs what the same API call costs.

Yahoo Finance

Quotes and price history from Yahoo Finance's public pages: shares, funds, indices, currency pairs and cryptocurrencies.

  • Yahoo Finance quote

    yahoo_finance.quote

    The symbol of a share, a fund, an index, a currency pair or a cryptocurrency on Yahoo Finance. What its page states: price and change, the day's and the 52-week range, volume, market capitalisation, earnings and dividend figures, the analysts' consensus, and for a company its sector, industry and description.

Yahoo Finance on the line-up

Where
Worldwide

Run it on an input of your own.

Create an account, make a key, and send the request above with your own input. The first 1,000 units each month are free.