     [Blog](https://scrapfly.io/blog)   /  [api](https://scrapfly.io/blog/tag/api)   /  [Yahoo Finance API: How to Get Yahoo Finance Data in Python (2026)](https://scrapfly.io/blog/posts/guide-to-yahoo-finance-api)   

# Yahoo Finance API: How to Get Yahoo Finance Data in Python (2026)

 by [Ziad Shamndy](https://scrapfly.io/blog/author/ziad) Nov 18, 2026 18 min read [\#api](https://scrapfly.io/blog/tag/api) [\#data-parsing](https://scrapfly.io/blog/tag/data-parsing) [\#hidden-api](https://scrapfly.io/blog/tag/hidden-api) [\#python](https://scrapfly.io/blog/tag/python) [\#scrapeguide](https://scrapfly.io/blog/tag/scrapeguide) 

 [  ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fguide-to-yahoo-finance-api "Share on LinkedIn") [  ](https://x.com/intent/tweet?url=https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fguide-to-yahoo-finance-api&text=Yahoo%20Finance%20API%3A%20How%20to%20Get%20Yahoo%20Finance%20Data%20in%20Python%20%282026%29 "Share on X") [  ](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fguide-to-yahoo-finance-api "Share on Facebook")    

 

 

Summarize this article with

 [  ](https://chat.openai.com/?q=Summarize%20this%20article%20and%20explain%20how%20Scrapfly%20helps%20me%20scrape%20any%20website%20at%20scale%20and%20bypass%20anti-bot%20systems%20for%20my%20use%20case%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fguide-to-yahoo-finance-api) [  ](https://claude.ai/new?q=Summarize%20this%20article%20and%20explain%20how%20Scrapfly%20helps%20me%20scrape%20any%20website%20at%20scale%20and%20bypass%20anti-bot%20systems%20for%20my%20use%20case%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fguide-to-yahoo-finance-api) [  ](https://x.com/i/grok?text=Summarize%20this%20article%20and%20explain%20how%20Scrapfly%20helps%20me%20scrape%20any%20website%20at%20scale%20and%20bypass%20anti-bot%20systems%20for%20my%20use%20case%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fguide-to-yahoo-finance-api) [  ](https://www.perplexity.ai/search/new?q=Summarize%20this%20article%20and%20explain%20how%20Scrapfly%20helps%20me%20scrape%20any%20website%20at%20scale%20and%20bypass%20anti-bot%20systems%20for%20my%20use%20case%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fguide-to-yahoo-finance-api) [  ](https://www.google.com/search?udm=50&aep=11&q=Summarize%20this%20article%20and%20explain%20how%20Scrapfly%20helps%20me%20scrape%20any%20website%20at%20scale%20and%20bypass%20anti-bot%20systems%20for%20my%20use%20case%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fguide-to-yahoo-finance-api) 



         

"Possibly delisted" is the famous yfinance reply when you're searching for a certain ticker that does not exist. Same thing if you're looking for Yahoo finance API. It does not exist.

The official API closed in 2017. yfinance still gets you the same data, though, so in this guide we'll walk through how to use it, and how to deal with its errors.

[What is HTTP Error 429 Too Many Request and How to Fix itHTTP 429 is an infamous response code that indicates request throttling or distribution is needed. Let's take a look at how to handle it.](https://scrapfly.io/blog/posts/what-is-http-error-429-too-many-requests)



## Key Takeaways

Yahoo discontinued its Finance API in 2017 and didn't release an alternative, though the same data is still served through the endpoints behind Yahoo's charts, which is what the open-source `yfinance` library uses. To get Yahoo Finance data we can:

- Use `yfinance` for research or educational purposes only
- Pick a third party provider that sells a license when the data is for commercial use
- Use ScrapFly's [Web Scraping API](https://scrapfly.io/products/web-scraping-api) when requests get blocked, as one call handles proxy rotation, anti-bot bypass and browser rendering.

**Get web scraping tips in your inbox**Trusted by 100K+ developers and 30K+ enterprises. Unsubscribe anytime.







## Is There a Yahoo Finance API in 2026?

No, Yahoo discontinued it in 2017 and did not provide an alternative, but you can get the data through the endpoints behind `finance.yahoo.com` either through yahoo's own endpoints serving the data to their charts or through the open-source `yfinance` library that uses the same source. They do not require a key or a sign-up.

You can also find several third-party API providers that resell Yahoo's data. These APIs are maintained and documented by them, so each has its own key and terms. For the free route, the only documentation is the [yfinance API reference](https://ranaroussi.github.io/yfinance/reference/index.html), written by the library's maintainers.

The data can be used for research or for testing trading strategies.



## How Do You Get Yahoo Finance Data in Python With yfinance?

I'll take you through each step in detail, but here is an overview to help you understand our flow.



Tests were made in November 2026 with yfinance 1.8.0, pandas 3.1.0, and Python 3.14.4

### How Do You Install yfinance and Fetch Your First Ticker?

Start by installing [yfinance](https://pypi.org/project/yfinance/).



bash

```bash
pip install yfinance
```



In yfinance, we need to create an object for every symbol. It's called a ticker. Each one has properties that we request to get the information we need like `fast_info` which gives us a brief look at what that symbol is trading at. Here's how:



python

```python
import yfinance as yf

apple = yf.Ticker("AAPL")
quote = apple.fast_info

print("Price:", round(quote["last_price"], 2))
print("Market cap:", round(quote["market_cap"]))
print("Currency:", quote["currency"])
```



I ran this snippet on November 5 2026 at 16:20 UTC+02:00 and this is the price it printed:



```
Price: 349.51
Market cap: 5079143072736
Currency: USD
```



### How Do You Pull Historical Prices With Ticker.history()?

Use the `.history` method. Call it on your ticker and provide the start and the end dates. You can also set the interval which is the bar size. Here is an example:



python

```python
import yfinance as yf

nvda = yf.Ticker("NVDA")

hist = nvda.history(start="2026-10-01", end="2026-11-01", interval="1d")
print(len(hist), "rows")
print(hist[["Close", "Volume"]].tail(3))

raw = nvda.history(start="2026-10-01", end="2026-11-01", auto_adjust=False)
print(list(raw.columns))

# save once, analyse the file later
hist.to_csv("nvda_2026_10.csv")
```



I made 2 separate requests and the difference is in `auto_adjust`. All prices are adjusted by default for splits and dividends. When you make it False, the close price is adjusted for splits only and you get an extra `Adj Close` column which shows the price after both split and dividend adjustments. If you want just returns or backtests, leave it as it is.

You can then export it to a CSV file, to save yourself from downloading the same history every time. Here is the example output:



```
22 rows
                                Close     Volume
Date                                            
2026-10-28 00:00:00-04:00  215.380005   93030200
2026-10-29 00:00:00-04:00  213.660004   77568100
2026-10-30 00:00:00-04:00  204.639999  168386400
['Open', 'High', 'Low', 'Close', 'Adj Close', 'Volume', 'Dividends', 'Stock Splits']
```



### How Do You Download Several Tickers With yf.download()?

Call `.download` and provide it with a list of your target tickers. It returns them in one DataFrame, as in this example:



python

```python
import yfinance as yf

data = yf.download(["AAPL", "MSFT"], start="2026-10-26", end="2026-10-31", progress=False)
print(data["Close"])
```



```
Ticker            AAPL        MSFT
Date                              
2026-10-26  343.910004  532.599976
2026-10-27  347.100006  531.330017
2026-10-28  343.829987  531.010010
2026-10-29  348.910004  530.140015
2026-10-30  344.630005  521.909973
```



By default in `yfinance v1.8` it works by calling the `.history` on every symbol on parallel threads. If you do not want that, add `threads=False` and it will fetch them one after the other instead. I used `data["Close"]` here to print only the closing price instead of the rest of the columns you'd see in a history call.

Like `.history`, `auto_adjust` defaults to `True`.

### How Do You Read Fundamentals and Options Chains in yfinance?

`.info` provides all the details for your target ticker in a dictionary. Use `.get` to retrieve the information you need to avoid any code crashes if there is a field missing. Use `.option_chain` to get the calls and puts in a dataframe. Let's see an example:



python

```python
import yfinance as yf

apple = yf.Ticker("AAPL")

info = apple.info
print(info.get("sector"), "|", info.get("trailingPE"))

expiries = apple.options
print(len(expiries), "expiries, nearest", expiries[0] if expiries else None)
if expiries:
    chain = apple.option_chain(expiries[0])
    print(chain.calls[["strike", "lastPrice", "bid", "ask"]].head(3))
```



I ran it on 2026-11-05 19:13 UTC+02:00 and here is the output:



```
Technology | 38.434303
21 expiries, nearest 2026-11-06
   strike  lastPrice     bid    ask
0   110.0     241.00  234.60  237.0
1   120.0     226.94  224.35  227.0
2   130.0     216.38  214.65  217.1
```



### How Do You Get Yahoo Finance News With yfinance?

Go with `.Search` then read `.news` from it like `yf.Search("NVDA", news_count=5).news`. Using `.news` only on the ticker [returned nothing](https://github.com/ranaroussi/yfinance/issues/3004) in `v1.7` and the fix has shipped in `v1.8` on November 3 2026, but `.Search` uses a different endpoint which kept working, keep that in mind.



python

```python
import yfinance as yf

for item in yf.Search("NVDA", news_count=5).news:
    print(item["publisher"], "|", item["title"])
```



On 2026-11-05 19:30 UTC+02:00, it printed:



```
24/7 Wall St. | Chip Stocks Are Sinking, but This Bearish ETF Is Up More Than 25%
GuruFocus.com | Nvidia Stocks Fall 6% as AI Expansion Risks Hit Chipmakers
Moby | Insight Enterprises, Inc. Q3 2026 Earnings Call Summary
Moby | Lamar Advertising Company Q3 2026 Earnings Call Summary
GuruFocus.com | Why is Micron Stock Sinking Today
```



## Is the Yahoo Finance API Free, and What Are the Rate Limits?

Yes, it is free to use and you do not need any key or even a sign-up. Yahoo does not provide any information about the [rate limits](https://scrapfly.io/blog/posts/what-is-rate-limiting-everything-you-need-to-know) as it is not an official API provided by them. They just block unwanted traffic with a 429 and yfinance translates it into `YFRateLimitError`.

The safe choice when using it is trying to reduce the calls as much as possible. Save your fetches in a CSV instead of downloading it every run. Try taking a pause between calls and avoid parallelism.

yfinance also states clearly that it is intended for research and educational purposes, and it points to [Yahoo's terms](https://legal.yahoo.com/us/en/yahoo/terms/otos/index.html). If you need the data for commercial use, check the alternatives section below.

You did your best to save calls, but ran into a 429 anyway? Next section has several solutions for this and some other common errors.



## Why Does yfinance Return a 429, an Empty DataFrame or "Possibly Delisted"?

The most common problems are: Yahoo does not have the data you're looking for, Yahoo is throttling you, yfinance refused the session, or an endpoint no longer exists.

yfinance keeps the error logs short and generic, so it may be hard to understand if you haven't dealt with it before.

| Symptom | Likely cause | First check |
|---|---|---|
| `YFRateLimitError` | Yahoo throttling (HTTP 429) | Wait, then retry with backoff |
| Empty DataFrame, "possibly delisted" | No data for symbol or dates | Symbol format and date range |
| `YFDataException` about caching sessions | `requests_cache` session passed | Remove the `session` argument |
| Method fails while prices work | Yahoo changed an endpoint | Upgrade, check open issues |

Let's go through each of them:

- **Rate limited.** You get something like `YFRateLimitError: Too Many Requests. Rate limited. Try after a while`. Take a break and retry later. Trying [`yf.config.network.retries`](https://ranaroussi.github.io/yfinance/advanced/config.html) will not solve it as it only retries timeouts and dropped connections, so catch `YFRateLimitError` yourself. Also, if you thought about IP switching, it may not work, as in [issue #2422](https://github.com/ranaroussi/yfinance/issues/2422) reported on April 30, 2025 on version `0.2.57`. The reporter said "I've tried using different IP addresses" and it did not work. A [reply in the same thread](https://github.com/ranaroussi/yfinance/issues/2422#issuecomment-2840764904) said the script worked locally but failed on AWS Lambda. These are not fixed rules, just 2025 reports on old versions, but worth noting.
- **Empty DataFrame with "possibly delisted".** The logged error you're going to see depends on which method you're using, but it all revolves around Yahoo's not found error: `"description": "No data found, symbol may be delisted"`. For example using the history method may log `$NOTAREALTICKERXQ: possibly delisted; no timezone found`. If you want to see the real error instead of yfinance's wording, add `yf.config.debug.hide_exceptions = False`. Check the date range and the symbol you're searching for, you can look it up on `finance.yahoo.com` and copy the symbol from there.
- **Caching session rejected.** Do not try to cache requests as yfinance rejects that behaviour. Using `requests_cache` session returns `YFDataException: Caching sessions (e.g. requests_cache) are not supported. Solution: stop setting session, let yfinance handle.`. Save the results instead and reuse them whenever you need.
- **Endpoint changed.** As noticed in `v1.7` when the endpoint behind `.news` failed, check if you're using the latest version and see the issues before rewriting your code.

Here's an example of how to handle rate limiting by catching the `YFRateLimitError` and waiting before retrying. The wait time is doubled on every retry using exponential backoff and if the returned frame is empty a `ValueError` is raised instead:



python

```python
import time
import yfinance as yf
from yfinance.exceptions import YFRateLimitError


def fetch_history(symbol, start, end, retries=3, base_delay=5):
    for attempt in range(retries):
        try:
            df = yf.Ticker(symbol).history(start=start, end=end)
        except YFRateLimitError:
            if attempt == retries - 1:
                raise
            wait = base_delay * 2 ** attempt
            print(f"Rate limited on {symbol}, sleeping {wait}s")
            time.sleep(wait)
            continue
        if df.empty:
            raise ValueError(f"No rows for {symbol} between {start} and {end}")
        return df


msft = fetch_history("MSFT", "2026-10-01", "2026-11-01")
print(len(msft), "rows, last close", round(msft["Close"].iloc[-1], 2))
```



We ran it on 2026-11-05 20:30 UTC+02:00 and got the following output:



```
22 rows, last close 521.91
```



## How Do You Call the Yahoo Finance Chart Endpoint Directly?

Yahoo Finance charts are loaded through a hidden API. If we open the browser devtools on a quote page we can see that the chart data comes from `https://query2.finance.yahoo.com/v8/finance/chart/<symbol>`. This is the same endpoint yfinance is using!

The endpoint takes `range` and `interval` as URL parameters, so let's put everything together and see how this looks in a Python scraper:



python

```python
from datetime import datetime
from zoneinfo import ZoneInfo
import requests

symbol = "NVDA"
url = f"https://query2.finance.yahoo.com/v8/finance/chart/{symbol}"
params = {"range": "5d", "interval": "1d"}
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36"}

response = requests.get(url, params=params, headers=headers, timeout=15)
if response.status_code == 429:
    raise SystemExit("Throttled by Yahoo (HTTP 429), try again later")
if "application/json" not in response.headers.get("Content-Type", ""):
    raise SystemExit(f"Expected JSON, got HTTP {response.status_code} {response.headers.get('Content-Type')}")

chart = response.json()["chart"]
if chart["error"]:
    raise SystemExit(f"HTTP {response.status_code}: {chart['error']['description']}")
if not chart["result"]:
    raise SystemExit("Empty result")

result = chart["result"][0]
tz = ZoneInfo(result["meta"]["exchangeTimezoneName"])
closes = result["indicators"]["quote"][0]["close"]

for ts, close in list(zip(result["timestamp"], closes))[:3]:
    if close is None:
        continue
    day = datetime.fromtimestamp(ts, tz).date()
    print(day, round(close, 2), result["meta"]["currency"])
```



Above we're making a GET request to the `/v8/finance/chart` endpoint with our URL parameters. Then, we check the response status and the `chart.error` field before reading any prices.

This request then returns a JSON document with the chart data in `chart.result[0]`. Details like `currency` and `exchangeTimezoneName` are under `meta` while the prices themselves are in `indicators.quote[0]` as `open`, `high`, `low`, `close` and `volume` lists. Some of these prices can be null so we're skipping them in our scraper.

Running our scraper on 2026-11-06 14:15 UTC+2 we got the closing price for each day:



```
2026-10-30 204.64 USD
2026-11-02 202.06 USD
2026-11-03 206.69 USD
```



Scrapfly

#### Extract structured data automatically?

Scrapfly's Extraction API uses AI to turn any webpage into structured data — no selectors needed.

[Try Free →](https://scrapfly.io/register)

This means that we can easily use this endpoint to debug yfinance, if yfinance fails we can call the endpoint directly and see whether Yahoo is the one failing.

This example illustrates how a hidden API is reverse engineered and it's a very common web scraping pattern, for more see our guide:

[How to Scrape Hidden APIsIn this tutorial we'll be taking a look at scraping hidden APIs which are becoming more and more common in modern dynamic websites - what's the best way to scrape them?](https://scrapfly.io/blog/posts/how-to-scrape-hidden-apis)



## How Do You Scrape Yahoo Finance Pages With requests and BeautifulSoup?

Install both libraries first, then select elements by Yahoo's `data-testid` attributes, make sure you check these selectors as they can change without notice.

We only need plain requests as the quote and markets pages are server-rendered HTML. If you're new to BeautifulSoup, see our [BeautifulSoup tutorial](https://scrapfly.io/blog/posts/web-scraping-with-python-beautifulsoup).



bash

```bash
pip install requests beautifulsoup4
```



If you don't know how to select elements by attribute, check [select elements by attribute](https://scrapfly.io/blog/answers/how-to-find-html-elements-by-attribute-with-beautifulsoup).

For the quote page, using `https://finance.yahoo.com/quote/AAPL/` and `[data-testid="qsp-price"]`, here is an example run:



python

```python
import requests
from bs4 import BeautifulSoup

HEADERS = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36"}

symbol = "AAPL"
response = requests.get(f"https://finance.yahoo.com/quote/{symbol}/", headers=HEADERS, timeout=15)
response.raise_for_status()

soup = BeautifulSoup(response.text, "html.parser")
price = soup.select_one('[data-testid="qsp-price"]')
if price is None:
    raise SystemExit("qsp-price not found, the page markup may have changed")
print(f"{symbol}: {price.get_text(strip=True)}")
```



On 2026-11-06 16:48 UTC+2, it printed `AAPL: 340.09`.

For the markets page `https://finance.yahoo.com/markets/`, you will find the indices grouped by region. Each region starts with an `h3`, followed by a table of indices where you will find a `data-testid-cell` attribute in each cell carrying the values of `ticker`, `sparkline`, `full_day_price`, or `full_day_change_percent`.

Here is an example scrape:



python

```python
import requests
from bs4 import BeautifulSoup

HEADERS = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36"}

response = requests.get("https://finance.yahoo.com/markets/", headers=HEADERS, timeout=15)
response.raise_for_status()
soup = BeautifulSoup(response.text, "html.parser")


def region_prices(region):
    heading = soup.find("h3", string=region)
    table = heading.find_next("table") if heading else None
    if table is None:
        raise SystemExit(f"No table found under '{region}'")
    rows = {}
    for row in table.select("tbody tr"):
        name = row.select_one('[data-testid-cell="ticker"]')
        price = row.select_one('[data-testid-cell="full_day_price"] span')
        if name and price:
            rows[name.get_text(strip=True)] = price.get_text(strip=True)
    return rows


for name, price in region_prices("Americas").items():
    print(f"{name}: {price}")
```



These were the results on 2026-11-06 16:49 UTC+2:



```
Nasdaq: 24,783.88
S&P 500: 7,430.31
IBOVESPA: 167,745.98
US Dollar Index: 102.25
Russell 2000: 2,728.78
Dow 30: 51,412.81
S&P/TSX Composite index: 35,519.82
US Private Equity: 10,760.93
VIX: 26.17
```



If you ran the scraper and found nothing returned, check the selectors on the page yourself and update them.



## How Do You Scrape Yahoo Finance at Scale With Scrapfly?

When your scheduled scrapes get blocked or hit 429s, use Scrapfly's Web Scraping API for your requests and keep your parsing code as it is. It handles proxy rotation, anti-bot bypass and browser rendering for you.



ScrapFly's [Web Scraping API](https://scrapfly.io/products/web-scraping-api) is a single HTTP endpoint for collecting web data at scale, with a **98% success rate** on the hardest public pages and proxies across **190+ countries**.

- [Web Unblocker API](https://scrapfly.io/products/unblocker) (previously ASP) - automatically defeats 25+ anti-bot systems, including Cloudflare, DataDome, PerimeterX and Akamai.
- [Smart proxy rotation](https://scrapfly.io/docs/scrape-api/proxy) - residential and datacenter pools with country and ASN level geo-targeting.
- [JavaScript rendering](https://scrapfly.io/docs/scrape-api/javascript-rendering) - render SPAs and dynamic pages through real cloud browsers.
- [Browser automation scenarios](https://scrapfly.io/docs/scrape-api/javascript-scenario) - scroll, click, fill forms, and wait for elements without managing a browser fleet.
- [Format conversion](https://scrapfly.io/docs/scrape-api/getting-started#api_param_format) - return pages as HTML, JSON, clean text, or LLM ready Markdown.
- [Session management](https://scrapfly.io/docs/scrape-api/session) - keep cookies, headers, and IPs consistent across multi step flows.
- [Smart caching](https://scrapfly.io/docs/scrape-api/getting-started#api_param_cache) - cache successful responses to cut cost on repeat scraping jobs.
- [Python](https://scrapfly.io/docs/sdk/python), [TypeScript](https://scrapfly.io/docs/sdk/typescript), [Scrapy](https://scrapfly.io/docs/sdk/scrapy), and [no-code integrations](https://scrapfly.io/docs/integration/getting-started) including [Make](https://scrapfly.io/integration/make), [n8n](https://scrapfly.io/integration/n8n), [Zapier](https://scrapfly.io/integration/zapier), [LangChain](https://scrapfly.io/integration/langchain), and [LlamaIndex](https://scrapfly.io/integration/llamaindex).

Start by installing [Python SDK](https://scrapfly.io/docs/sdk/python) and parsel.



bash

```bash
pip install scrapfly-sdk parsel
```



Here is how to use it:



python

```python
import os
from scrapfly import ScrapflyClient, ScrapeConfig

client = ScrapflyClient(key=os.environ["SCRAPFLY_KEY"])


def scrape_quote(symbol):
    result = client.scrape(ScrapeConfig(
        url=f"https://finance.yahoo.com/quote/{symbol}/",
        unblocker=True,   # anti-bot bypass, the older name is asp=True
        render_js=True,   # load the page in a cloud browser
        country="US",     # US proxy, so prices come back in USD
        cache=True,       # reuse a recent copy instead of fetching again
    ))
    price = result.selector.css('[data-testid="qsp-price"]::text').get()
    return {"symbol": symbol, "price": price}


for symbol in ["AAPL", "MSFT", "NVDA"]:
    print(scrape_quote(symbol))
```



I ran it on 2026-11-06 19:06 UTC+2



```
{'symbol': 'AAPL', 'price': '344.09 '}
{'symbol': 'MSFT', 'price': '534.92'}
{'symbol': 'NVDA', 'price': '188.64'}
```



Keep in mind this way only changes how you retrieve the data and does not change what Yahoo's terms allow you to do with it.



### Power your scraping with Scrapfly

Forget about getting blocked. Scrapfly handles anti-bot bypasses, browser rendering, and proxy rotation so you can focus on the data.



[Try for FREE!](https://scrapfly.io/register)



## Which Yahoo Finance API Alternatives Offer a Supported Data API?

Sometimes you need more than what yfinance can provide: mainly a license to use the data commercially, or support. Here are several providers that sell licenses to use their data.

| Source | Data emphasis | Access | Key |
|---|---|---|---|
| yfinance | Prices, history, fundamentals, options | Python library | None |
| Alpha Vantage | Time series and indicators | REST (JSON, CSV) | Required |
| Twelve Data | Multi-asset time series | REST, streaming | Required |
| [Massive](https://massive.com/) (formerly Polygon.io) | Trades, quotes, ticks | REST, streaming, files | Required |
| Finnhub | Quotes, news, company events | REST, streaming | Required |
| Tiingo | End-of-day prices, news, corporate actions | REST, streaming, CSV | Required |
| Nasdaq Data Link | Fundamentals, macro and alternative datasets | REST | Required |

Most of them provide a free entry but they vary in terms of use and quotas, so check each provider for more details before building your code around it.

For more financial APIs, see

[8 Best Financial Data APIs for Developers in 2026Eight financial data APIs compared by workload, delivery method, history depth, entitlement, and what the licence actually lets you redistribute.](https://scrapfly.io/blog/posts/best-financial-data-apis)

For Google's side, see our Google Finance API guide:

[Google Finance API and the Best Alternatives for Developers (2026)Guide to Google Finance data and discontinued Google Finance API alternatives and a secret API.](https://scrapfly.io/blog/posts/guide-to-google-finance-api)



## FAQ

Can I use Yahoo Finance data from yfinance commercially?

`yfinance` provides the data for research or educational purposes. There are other alternatives that sell a license to use the data commercially.







Is yfinance still working in 2026?

Yes, it is still working and was updated to `1.8.0` on November 3, 2026.







Does Google Finance have an API I can use instead?

No, Google shut the API down back in 2012, the closest option is the GOOGLEFINANCE function in Google Sheets, which our [Google Finance guide](https://scrapfly.io/blog/posts/guide-to-google-finance-api) uses.









## Summary

There hasn't been an official API from Yahoo since 2017. The options now are `yfinance` and Yahoo's chart endpoint. If you couldn't get what you wanted from the page, then you're left with scraping it.

Along the way we covered several tips: using explicit start and end dates, saving our results instead of caching requests, and catching `YFRateLimitError` with a backoff.

Scrapfly's [Web Scraping API](https://scrapfly.io/products/web-scraping-api) handles the scheduled jobs that keep getting blocked. For commercial use, pick a provider that gives you a license to use the product.



Legal Disclaimer and Precautions

This tutorial covers popular web scraping techniques for education. Interacting with public servers requires diligence and respect:

- Do not scrape at rates that could damage the website.
- Do not scrape data that's not available publicly.
- Do not store PII of EU citizens protected by GDPR.
- Do not repurpose *entire* public datasets which can be illegal in some countries.

Scrapfly does not offer legal advice but these are good general rules to follow. For more you should consult a lawyer.

 

   [  Add as a preferred source ](https://google.com/preferences/source?q=scrapfly.io) Table of Contents















 

  Table of Contents

- [Key Takeaways](#key-takeaways)
- [Is There a Yahoo Finance API in 2026?](#is-there-a-yahoo-finance-api-in-2026)
- [How Do You Get Yahoo Finance Data in Python With yfinance?](#how-do-you-get-yahoo-finance-data-in-python-with-yfinance)
- [How Do You Install yfinance and Fetch Your First Ticker?](#how-do-you-install-yfinance-and-fetch-your-first-ticker)
- [How Do You Pull Historical Prices With Ticker.history()?](#how-do-you-pull-historical-prices-with-ticker-history)
- [How Do You Download Several Tickers With yf.download()?](#how-do-you-download-several-tickers-with-yf-download)
- [How Do You Read Fundamentals and Options Chains in yfinance?](#how-do-you-read-fundamentals-and-options-chains-in-yfinance)
- [How Do You Get Yahoo Finance News With yfinance?](#how-do-you-get-yahoo-finance-news-with-yfinance)
- [Is the Yahoo Finance API Free, and What Are the Rate Limits?](#is-the-yahoo-finance-api-free-and-what-are-the-rate-limits)
- [Why Does yfinance Return a 429, an Empty DataFrame or "Possibly Delisted"?](#why-does-yfinance-return-a-429-an-empty-dataframe-or-possibly-delisted)
- [How Do You Call the Yahoo Finance Chart Endpoint Directly?](#how-do-you-call-the-yahoo-finance-chart-endpoint-directly)
- [How Do You Scrape Yahoo Finance Pages With requests and BeautifulSoup?](#how-do-you-scrape-yahoo-finance-pages-with-requests-and-beautifulsoup)
- [How Do You Scrape Yahoo Finance at Scale With Scrapfly?](#how-do-you-scrape-yahoo-finance-at-scale-with-scrapfly)
- [Which Yahoo Finance API Alternatives Offer a Supported Data API?](#which-yahoo-finance-api-alternatives-offer-a-supported-data-api)
- [FAQ](#faq)
- [Summary](#summary)
 
    Join the Newsletter  Get monthly web scraping insights 

 

  



Scale Your Web Scraping

Anti-bot bypass, browser rendering, and rotating proxies, all in one API. Start with 1,000 free credits.

  No credit card required  1,000 free API credits  Anti-bot bypass included 

 [Start Free](https://scrapfly.io/register) [View Docs](https://scrapfly.io/docs/onboarding) 

 Not ready? [Get our newsletter](#newsletter-modal) instead. 

 

 

## Related Articles

 [     

 python data-parsing 

### How to Scrape an Entire Product Catalogue with Python

Learn how to discover, crawl, and extract every product from an e-commerce catalog in Python, then keep that data fresh ...

 

 ](https://scrapfly.io/blog/posts/how-to-scrape-large-product-catalogs) [     

 http python 

### Web Scraping with Python

Introduction tutorial to web scraping with Python. How to collect and parse public data. Challenges, best practices and ...

 

 ](https://scrapfly.io/blog/posts/web-scraping-with-python) [     

 api 

### Google Finance API and the Best Alternatives for Developers (2026)

Guide to Google Finance data and discontinued Google Finance API alternatives and a secret API.

 

 ](https://scrapfly.io/blog/posts/guide-to-google-finance-api) 

  

## Related Questions

- [ Q How to select dictionary key recursively in Python? ](https://scrapfly.io/blog/answers/how-to-select-dictionary-key-recursively-in-python)
 
  



   



 Extract structured data with AI, **1,000 free credits** [Start Free](https://scrapfly.io/register)