yfinance Alternatives 2027: Beyond Scraped Data
yfinance alternatives compared: what the free scraper returns, measured, and which paid APIs add deeper fundamentals, point-in-time data and a license.

The best yfinance alternative depends on why you are leaving it. If the scraper keeps breaking, any official API with a key and published rate limits fixes that. If the research itself has to hold up, the problem is the data: yfinance returns 4 to 5 years of financial statements with no source, the top 10 holdings of a fund, and at most 150 insider transactions. I ran it on December 2, 2026 and counted.
This post measures what yfinance returns, compares the alternatives on source, depth and license, and shows what a paid financial data API adds: 19 to 20 years of statements with the SEC filing behind every value, point-in-time fundamentals, full daily ETF holdings, the whole Form 4 history and footnote data. It covers fundamentals and filing data. Stock prices are out of scope here. One disclosure: StockFit is my company, and it is one of the alternatives.
Why yfinance keeps breaking: rate limits and an unofficial API
yfinance is an open-source Python library with about 26,000 GitHub stars, and it is not an official API. Its README says so in plain words: yfinance is "not affiliated, endorsed, or vetted by Yahoo, Inc." and is "intended for research and educational purposes". It uses what the README calls Yahoo's publicly available APIs. Nobody at Yahoo promised that those stay the same.
The issue tracker shows what that means in practice:
- January 2023: issue 1329, "yfinance failed to decrypt Yahoo data response", 71 comments.
- July 2023: issue 1592, "401 Client Error: Unauthorized", 45 comments.
- April 2025: issue 2422,
YFRateLimitError('Too Many Requests'), 141 comments. - May 2025: issue 2441, "Yahoo may return bad crumb which is not detected properly".
Sixteen issues in the repository carry "Too Many Requests" in the title. The rate limits are not published anywhere, because they are Yahoo's to set. Its API terms say the APIs "may be subject to rate limits at Yahoo's absolute and sole discretion" and that Yahoo "may change, suspend, or discontinue any aspect of the Yahoo APIs at any time". So a script that ran yesterday can fail today without warning, with nothing changed in your code.
To be fair to the maintainers: they are volunteers, all four of those issues are closed, and the library is not careless. It is built on a source that never agreed to be an API.
What yfinance actually returns, measured
Breakage is the complaint you hear most, but it is the smaller problem. The bigger one is how little fundamental data comes back when everything works. I ran yfinance 1.8.0 against ten large US companies (AAPL, MSFT, NVDA, COST, JPM, WMT, KO, CAT, JNJ, PG) and five ETFs, and called the StockFit API for the same symbols on the same day.
| What you ask for | yfinance 1.8.0 | StockFit |
|---|---|---|
| Annual income statements | 4 to 5 fiscal years | 19 to 20 fiscal years, back to fiscal 2007 or 2008 |
| Quarterly income statements | 5 to 7 quarters | 72 to 77 quarters, with a standalone Q4 |
| Source of each value | None | Accession number and acceptance time of the SEC filing |
| Insider transactions | 72 to 150 rows, two years at most | 2,563 to 8,775 rows |
| ETF holdings | Top 10, name and weight | Every position, daily, with ticker, CUSIP and share balance |
The values themselves mostly agree. Latest-year revenue matched to the dollar for nine of the ten companies, and so did net income. The two differences show why a source matters:
- JPMorgan. yfinance returns $181,847 million of total revenue for 2025. The 10-K reports $182,447 million (accession
0001628280-26-008131, which you can confirm in the SEC's own company facts). With no source on the yfinance figure, you cannot tell where the difference comes from. - Caterpillar. The two net income figures differ by $2 million. That one is a definition: yfinance shows profit attributable to common shareholders, and our
netIncomeis consolidated profit. With the XBRL concept on each value, it takes a minute to see.
What yfinance does well deserves saying. It is free and needs no API key. It covers global exchanges, returns decades of historical stock prices with dividends and splits, and has current options data. For a class, a notebook or a quick look at a ticker, it is hard to beat. The limits start where the work gets serious: a backtest that needs more than five years of history, a model that someone else will check, or a product that needs a license.
yfinance alternatives compared: source, depth and license
Most lists of Yahoo Finance API alternatives compare request limits. Limits matter least. These three questions decide whether a data provider can replace yfinance for research: where the data comes from, how much of it you get, and what you are allowed to do with it. Every row links to the page the facts came from.
| Option | Source | Fundamentals | Audit trail | License |
|---|---|---|---|---|
| yfinance | Yahoo Finance endpoints, unofficial | 4 to 5 annual and 5 to 7 quarterly statements, measured | None: no filing date, no accession number | README: research, education and personal use |
| StockFit | SEC filings and fund issuer files | 19 to 20 annual and 72 to 77 quarterly statements on Pro, 10 years on Starter, latest year on Free | Accession number and acceptance time on every value, restated values kept | Commercial license on the paid plans; Free is personal use |
| Massive (formerly Polygon.io) | Exchange market data, US markets | Financials and ratios on Stocks Advanced or as an add-on | A filing date on the statement, no accession number | Business plans license commercial use |
| EODHD | Third-party, global exchanges | On the paid Fundamentals Data Feed plan, not on Free | Filing date, no accession number | Free plan is personal use; commercial use is a separate plan |
| Financial Modeling Prep | Third-party, normalized | Free Basic plan: 87 symbols, 5 periods per call, 250 calls a day | Filing date, no accession number | Commercial use on the Enterprise plan |
| Alpha Vantage | Third-party, normalized | Statements included, 25 requests a day on the free key | Fiscal date only, no filing date or accession number | Commercial use goes through sales |
| SEC EDGAR | The SEC itself | Raw XBRL facts since 2009; you build the statements | Accession number on every fact | Public data |
How to read it:
- You need licensed market data. Massive is a market data API first: exchange data for US markets, with Business plans that license commercial use. Financial statements are an add-on there, not the core.
- You need companies outside the US. EODHD covers global exchanges. Its free plan has end-of-day data only, and fundamentals sit on a paid plan.
- You need a broad, familiar API. Financial Modeling Prep and Alpha Vantage both return normalized financial statements. Their free tiers are narrow (87 symbols, or 25 requests a day), and neither response names the filing a value came from. We compared both in detail in Financial Modeling Prep alternatives and Alpha Vantage alternatives.
- You want free and official. SEC EDGAR has every number with its accession number, as raw XBRL facts. Our SEC EDGAR API tutorial in Python shows what it takes to turn them into statements.
- You need deep US fundamentals that you can audit. That is what StockFit is built for, and the rest of this post shows the receipts.
Fundamentals with history and a point-in-time trail
Depth is the first gap. A free scraper gives you 4 to 5 fiscal years. That is one market cycle at best, and too short for any backtest on fundamental data. The paid plans return the full history: 10 years on Starter and everything we have on Pro, which was 20 annual and 74 quarterly periods for Apple, back to fiscal 2007. The quarterly series includes a standalone fourth quarter, which no company files and has to be derived from the 10-K.
The second gap is harder to see, and it does more damage. Companies restate. yfinance returns one value per period, the latest one, with nothing to show that it changed. Here is General Electric's revenue:
import yfinance as yf
ge = yf.Ticker("GE")
print(ge.income_stmt.loc["Total Revenue"])
# 2025-12-31 4.585500e+10
# 2024-12-31 3.870200e+10
# 2023-12-31 3.534800e+10
# 2022-12-31 2.913900e+10
# 2021-12-31 NaNyfinance says GE had $29,139 million of revenue in 2022. The 10-K that GE filed in February 2023 reported $76,555 million. Both are correct. GE spun off GE HealthCare in January 2023 and GE Vernova in April 2024, and each later 10-K presented 2022 again without the business that had left. A backtest that reads the yfinance number acts in early 2023 on a figure nobody could have known until February 2025.
The same year from /api/financials/income-statement:
curl -H "Authorization: Bearer $STOCKFIT_API_KEY" \
"https://api.stockfit.io/v1/api/financials/income-statement?symbol=GE&period=annual&limit=6"{
"fiscalYear": 2022,
"fiscalPeriod": "FY",
"dateFiled": "2023-02-10",
"acceptedAt": "2023-02-10T13:32:52Z",
"facts": { "revenue": 29139000000 },
"sources": {
"0000040545-23-000023": {
"type": "10-K", "dateFiled": "2023-02-10", "acceptedAt": "2023-02-10T13:32:52Z", "amendment": false,
"facts": { "revenue": {} }
},
"0000040545-24-000027": {
"type": "10-K", "dateFiled": "2024-02-02", "acceptedAt": "2024-02-02T11:31:30Z", "amendment": false,
"facts": { "revenue": { "before": 76555000000 } }
},
"0000040545-25-000015": {
"type": "10-K", "dateFiled": "2025-02-03", "acceptedAt": "2025-02-03T11:31:16Z", "amendment": false,
"facts": { "revenue": { "before": 58100000000 } }
}
}
}One period, three filings. The 10-K accepted on February 10, 2023 first reported the year. The next one changed revenue from $76,555 million to $58,100 million, and the one after that changed it to $29,139 million. Each before is the value the filing replaced, and each acceptedAt is the second the SEC made the filing public. From those two fields you can rebuild what was known on any date, which is the whole point of point-in-time fundamentals. The accession numbers open the filings themselves through /api/filings or on SEC EDGAR.
Also worth a look: yfinance returns NaN for GE's 2021 revenue. The column exists and the value is missing, with no error. Data reliability problems of that kind are the ones that surface in the middle of an analysis.
Daily ETF holdings, insider trades and footnote data
Statements are where the two sources overlap. Most of what serious research runs on has no real equivalent in yfinance at all.
Full ETF holdings, updated daily
funds_data.top_holdings returned 10 rows for SPY, QQQ, IWM and VTI and 9 for ARKK: a name and a weight each, with no report date. /api/fund/holdings/daily returned 505 positions for SPY as of 2026-11-30:
{
"page": 1,
"pageSize": 50,
"totalPages": 11,
"totalResults": 505,
"reportDate": "2026-11-30",
"data": [
{
"name": "APPLE INC",
"ticker": "AAPL",
"cusip": "037833100",
"sedol": "2046251",
"balance": 178932901,
"units": "NS",
"currency": "USD",
"pctVal": 8.144785
}
]
}Ten rows cannot answer the questions people ask of holdings: what a fund bought yesterday, how two funds overlap, which funds hold a small cap. The full list can. The data comes from each issuer's own daily file, so the date follows the issuer: the SPDR, Invesco, iShares and ARK funds above were one or two days old, while Vanguard publishes monthly and VTI's 3,475 positions were dated 2026-10-31. More on the feed in our daily ETF holdings API post.
Every Form 4, not the last 150 rows
insider_transactions returned between 72 and 150 rows per company, reaching back two years at most, and exactly 150 for 4 of the ten. /api/insider-transactions returned 6,406 transactions for Apple against 90.
The rows differ too. For Apple's chief operating officer, yfinance shows one line dated November 27, 2026: 110,000 shares, "Sale at price 349.38 - 356.26 per share". The Form 4 reports two sales on two days, 55,000 shares at $349.38 on November 25 and 55,000 at $356.26 on November 27. The API returns them as filed:
{
"ownerName": "Khan Sabih",
"officerTitle": "COO",
"documentType": "4",
"transactionDate": "2026-11-25",
"transactionCode": "S",
"shares": 55000,
"pricePerShare": 349.38,
"transactionValue": 19215900,
"accessionNumber": "0001140361-26-046128",
"filingDate": "2026-11-30"
}If you study how insiders trade around events, the day matters. Merged rows with a price range are fine for a profile page and useless for an event study. Our insider trading API comparison goes deeper on Form 4 data.
Footnote data and the rest of the filing
A 10-K is mostly footnotes, and yfinance reads none of them. StockFit has 17 footnote endpoints that return them as structured data: revenue and business segments, debt by tranche, credit facilities, leases, stock compensation, customer concentration, pensions, buybacks, backlog and more. One example: /api/footnotes/revenue-segmentation returns Apple's fiscal 2026 revenue by product, with iPhone at $254,098 million and Services at $123,301 million, and the products and services add up to the $478,834 million on the income statement.
Beyond the footnotes there are 13F institutional holders with history, executive compensation from proxy statements, congressional trades and an earnings calendar. The financial data API comparison maps which provider covers which data family, and the financial data API for quant research page shows the research workflow end to end.
Can you use yfinance commercially?
This is the question that ends most yfinance projects once they turn into products. The library's code is Apache-licensed. The data is not the library's to license. The README ends its legal note with: "Remember - the Yahoo! finance API is intended for personal use only." It points to Yahoo's terms, and the API terms list among the things you may not do: "derive income from the use or provision of the Yahoo APIs, whether for direct commercial or monetary gain or otherwise", unless Yahoo gives prior written permission.
So a newsletter with a paywall, a client report, a SaaS dashboard or an internal tool at a fund all need a data source that says in writing that commercial use is allowed. How the alternatives handle it:
- StockFit. The paid plans, Starter and Pro, come with a Commercial license: use inside your business and display of the data to the users of your own application. Passing the raw data on to third parties needs a separate agreement. The Free plan and the Personal license are for personal use, the same as yfinance, and the pricing page shows which is which.
- Massive. Its Business plans license the data for commercial use.
- Financial Modeling Prep and Alpha Vantage. FMP puts commercial use in its Enterprise plan, and Alpha Vantage sends commercial users to sales.
- SEC EDGAR. Public data, free to use.
Whatever you pick, read the license before you build on it. It is the one property of a data source that no amount of engineering fixes later.
Migrating a yfinance script
Most fundamentals code written against yfinance is a few calls on a Ticker object. This is the usual start:
import yfinance as yf
income = yf.Ticker("AAPL").income_stmt # 5 fiscal years
insiders = yf.Ticker("AAPL").insider_transactions # 90 rows
holdings = yf.Ticker("SPY").funds_data.top_holdings # 10 rowsThe same three datasets from the API, with one small helper. You get an API key in the dashboard and pass it as a bearer token:
import os
import pandas as pd
import requests
BASE = "https://api.stockfit.io/v1/api"
HEADERS = {"Authorization": f"Bearer {os.environ['STOCKFIT_API_KEY']}"}
def get(path, **params):
response = requests.get(BASE + path, params=params, headers=HEADERS, timeout=30)
response.raise_for_status()
return response.json()
income = get("/financials/income-statement", symbol="AAPL", period="annual", limit=80)
insiders = get("/insider-transactions", symbol="AAPL")
holdings = get("/fund/holdings/daily", symbol="SPY")
print(len(income), "annual periods, first fiscal year", income[-1]["fiscalYear"])
print(insiders["totalResults"], "insider transactions")
print(holdings["totalResults"], "SPY holdings as of", holdings["reportDate"])
# 20 annual periods, first fiscal year 2007
# 6406 insider transactions
# 505 SPY holdings as of 2026-11-30
# The DataFrame your yfinance code expects: line items as rows, fiscal years as columns
frame = pd.DataFrame({p["fiscalYear"]: p["facts"] for p in income})
receipts = {p["fiscalYear"]: list(p["sources"]) for p in income}The calls map one to one:
| yfinance | StockFit endpoint | Plan |
|---|---|---|
income_stmt, quarterly_income_stmt | /api/financials/income-statement | Free (latest year), Starter, Pro |
balance_sheet | /api/financials/balance-sheet | Free (latest year), Starter, Pro |
cashflow | /api/financials/cash-flow-statement | Free (latest year), Starter, Pro |
insider_transactions | /api/insider-transactions | Pro |
institutional_holders | /api/ownership/institutional-holders | Pro |
funds_data.top_holdings | /api/fund/holdings/daily | Pro |
Three things change when you switch:
- Field names are stable.
revenueisrevenuefor every company and every year, and they are part of a documented API contract. yfinance row labels such asTotal Revenueare Yahoo's. - Every period carries its receipts.
sourceslists the accession numbers behind the values, so the check against the 10-K is one lookup. - Rate limits are published. Each plan states its limit per minute and per day, and every response reports what is left in
X-RateLimit-Remaining-MinuteandX-RateLimit-Remaining-Day. A loop over 500 tickers either fits or it does not, and you know before you run it.
The plan column is honest about the trade. A free key returns the latest year of statements, for personal use, which is less history than yfinance gives you for nothing. The depth, the daily holdings, the insider history and the commercial license are what the paid plans are for. Every free account includes 50 one-time calls to the paid endpoints, enough to run the script above and check the numbers against your own. ; no card required.
Data verified December 2, 2026. yfinance figures come from yfinance 1.8.0 run on that day and from its README and issue tracker. StockFit figures come from the production API. Vendor facts come from each vendor's own pages. This post is about data, not investment advice.
FAQ
Q.Is yfinance an official Yahoo Finance API?
Q.Why does yfinance return "Too Many Requests"?
Q.Can I use yfinance commercially?
Q.How many years of financial statements does yfinance return?
Q.Does yfinance have point-in-time data?
Q.Does yfinance show full ETF holdings?
Q.What is the best yfinance alternative for fundamentals?
Q.Is there a free yfinance alternative?
Ready to build?
Free API key, no credit card.