Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIYahoo Finance

    yahoo_finance.quote

    A share, fund, index, currency pair or cryptocurrency on Yahoo Finance: price, day and 52-week range, volume, valuation, dividend and company profile.

    Id
    yahoo_finance.quote
    Version
    1
    Billed per
    request — 1 unit for a charged run
    Runs
    within one request

    Start it with POST /v1/scrapers/yahoo_finance.quote/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.

    Inputs

    The fields of input. A field that is not listed here is refused.

    Inputs of yahoo_finance.quote
    FieldTypeDescription
    symbolrequiredstringThe instrument's symbol on Yahoo Finance: AAPL, 7203.T (a share on another exchange), VOO (a fund), ^GSPC (an index), EURUSD=X (a currency pair), BTC-USD (a cryptocurrency); or the address of its page.Limit: at least 1 characters, at most 300 characters.

    Record fields

    Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.

    Record fields of yahoo_finance.quote
    FieldTypeNotes
    symbolstringYahoo Finance's symbol of the instrument, e.g. AAPL, 7203.T, BTC-USD, ^GSPC.
    namestring or nullThe instrument's name, e.g. Apple Inc..
    urlstringThe instrument's page on Yahoo Finance.
    quote_typestring or nullThe kind of instrument, in Yahoo's word: EQUITY, ETF, MUTUALFUND, INDEX, CURRENCY, CRYPTOCURRENCY, FUTURE.
    exchangestring or nullThe exchange the price is from, as the page names it, e.g. NasdaqGS, Tokyo, LSE.
    currencystring or nullThe currency the prices are in, e.g. USD. London shares are quoted in pence, which Yahoo writes GBp.
    market_statestring or nullWhether the market was open when the page was read, in Yahoo's word: REGULAR, PRE, POST, CLOSED.
    pricenumber or nullThe latest price of the regular session.
    changenumber or nullThe price's change from the previous close, in the price's currency.
    change_percentnumber or nullThe same change in percent of the previous close: 1.5 means one and a half percent.
    price_timestring (date-time) or nullWhen that price was set, in UTC.
    previous_closenumber or nullThe previous session's closing price.
    opennumber or nullThe session's opening price.
    day_lownumber or nullThe session's lowest price.
    day_highnumber or nullThe session's highest price.
    volumeinteger or nullThe number of units traded in the session.
    average_volumeinteger or nullThe average daily volume over the last three months.
    bidnumber or nullThe highest price a buyer offers. Null where the page shows none.
    asknumber or nullThe lowest price a seller asks. Null where the page shows none.
    fifty_two_week_lownumber or nullThe lowest price of the last 52 weeks.
    fifty_two_week_highnumber or nullThe highest price of the last 52 weeks.
    fifty_day_averagenumber or nullThe average closing price of the last 50 sessions.
    two_hundred_day_averagenumber or nullThe average closing price of the last 200 sessions.
    pre_market_pricenumber or nullThe latest price before the regular session, where the page shows one.
    post_market_pricenumber or nullThe latest price after the regular session, where the page shows one.
    market_capinteger or nullThe market capitalisation, in the price's currency. Null for an index, a fund or a currency pair.
    enterprise_valueinteger or nullThe enterprise value of a company.
    shares_outstandinginteger or nullThe number of a company's shares outstanding.
    trailing_penumber or nullThe price divided by the last twelve months' earnings per share.
    forward_penumber or nullThe price divided by the expected earnings per share.
    epsnumber or nullThe earnings per share of the last twelve months.
    price_to_booknumber or nullThe price divided by the book value per share.
    betanumber or nullThe share's five-year monthly beta against its market.
    dividend_ratenumber or nullThe expected dividend per share over a year, in the price's currency.
    dividend_yield_percentnumber or nullThat dividend in percent of the price: 1.5 means one and a half percent.
    ex_dividend_datestring (date) or nullThe last day's date before which a buyer still receives the next dividend.
    earnings_datestring (date) or nullThe date of the company's next earnings report, where the page gives one.
    target_mean_pricenumber or nullThe average of the analysts' price targets.
    recommendationstring or nullThe analysts' consensus in Yahoo's word: strong_buy, buy, hold, underperform, sell.
    analyst_countinteger or nullHow many analysts the target and the recommendation are from.
    total_assetsinteger or nullA fund's net assets.
    nav_pricenumber or nullA fund's net asset value per share.
    fund_yield_percentnumber or nullA fund's yield as a percentage.
    circulating_supplyinteger or nullA cryptocurrency's units in circulation.
    sectorstring or nullA company's sector, e.g. Technology.
    industrystring or nullA company's industry, e.g. Consumer Electronics.
    employeesinteger or nullA company's number of full-time employees.
    websitestring or nullThe company's or the project's own website.
    citystring or nullThe city of a company's head office.
    countrystring or nullThe country of a company's head office.
    descriptionstring or nullWhat the page says the company does, or what the cryptocurrency is.
    fetched_atstring (date-time)When the page was read, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/scrapers/yahoo_finance.quote/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"symbol":"AAPL"}}'
    
    # 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.quote", {"symbol": "AAPL"})
    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.quote", { symbol: "AAPL" });
    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.quote", map[string]any{"symbol": "AAPL"})
    	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.quote", Map.of("symbol", "AAPL"));
            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.quote --input symbol=AAPL

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

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "input": {
        "symbol": "AAPL"
      }
    }

    Example response

    The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.

    JSON
    {
      "id": "run_841742f37553189ff9c27ba1",
      "scraper_id": "yahoo_finance.quote",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "symbol": "AAPL"
      },
      "record_count": 1,
      "units": 1,
      "units_per_request": 1,
      "units_per_record": null,
      "units_per_page": null,
      "diagnostics": {
        "requests": 1,
        "bytes": 259214,
        "wall_ms": 885,
        "facts": {}
      },
      "created_at": "2026-11-16T22:37:50.170950Z",
      "started_at": "2026-11-16T22:37:50.178331Z",
      "finished_at": "2026-11-16T22:37:51.066313Z"
    }

    Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.

    JSON
    {
      "records": [
        {
          "symbol": "AAPL",
          "name": "Apple Inc.",
          "url": "https://finance.yahoo.com/quote/AAPL/",
          "quote_type": "EQUITY",
          "exchange": "NasdaqGS",
          "currency": "USD",
          "market_state": "POST",
          "price": 352.45,
          "change": 0.54,
          "change_percent": 0.1535,
          "price_time": "2026-11-18T21:00:01Z",
          "previous_close": 351.91,
          "open": 351.87,
          "day_low": 351.4706,
          "day_high": 356.42,
          "volume": 33393854,
          "average_volume": 42699353,
          "bid": 351.52,
          "ask": 353.17,
          "fifty_two_week_low": 243.42,
          "fifty_two_week_high": 360.83,
          "fifty_day_average": 340.4064,
          "two_hundred_day_average": 302.1289,
          "pre_market_price": 352.05,
          "post_market_price": 351.6,
          "market_cap": 5121867513856,
          "enterprise_value": 5151777095680,
          "shares_outstanding": 14532182000,
          "trailing_pe": 39.248333,
          "forward_pe": 33.335762,
          "eps": 8.98,
          "price_to_book": 45.695583,
          "beta": 1.089,
          "dividend_rate": 1.08,
          "dividend_yield_percent": 0.31,
          "ex_dividend_date": "2026-11-12",
          "earnings_date": "2027-01-28",
          "target_mean_price": 345.6313,
          "recommendation": "buy",
          "analyst_count": 39,
          "total_assets": null,
          "nav_price": null,
          "fund_yield_percent": null,
          "circulating_supply": null,
          "sector": "Technology",
          "industry": "Consumer Electronics",
          "employees": 167000,
          "website": "https://www.apple.com",
          "city": "Cupertino",
          "country": "United States",
          "description": "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; … [truncated]",
          "fetched_at": "2026-11-19T18:07:42.727154Z"
        }
      ],
      "next_cursor": null
    }

    What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].

    • Shortened: description: 1,853 characters, the first 239 shown.

    A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Yahoo Finance scrapers are in their own section there.