All Posts
Comparisonyfinance AlternativesYahoo Finance APIFundamentals API

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.

Published December 2, 202613 min readAndy Reimann
yfinance Alternatives 2027: Beyond Scraped Data

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 foryfinance 1.8.0StockFit
Annual income statements4 to 5 fiscal years19 to 20 fiscal years, back to fiscal 2007 or 2008
Quarterly income statements5 to 7 quarters72 to 77 quarters, with a standalone Q4
Source of each valueNoneAccession number and acceptance time of the SEC filing
Insider transactions72 to 150 rows, two years at most2,563 to 8,775 rows
ETF holdingsTop 10, name and weightEvery position, daily, with ticker, CUSIP and share balance
Annual income statements returned per company
yfinance 1.8.0 Ticker.income_stmt against /api/financials/income-statement with limit=80, both on 2026-12-02.

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 netIncome is 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.

OptionSourceFundamentalsAudit trailLicense
yfinanceYahoo Finance endpoints, unofficial4 to 5 annual and 5 to 7 quarterly statements, measuredNone: no filing date, no accession numberREADME: research, education and personal use
StockFitSEC filings and fund issuer files19 to 20 annual and 72 to 77 quarterly statements on Pro, 10 years on Starter, latest year on FreeAccession number and acceptance time on every value, restated values keptCommercial license on the paid plans; Free is personal use
Massive (formerly Polygon.io)Exchange market data, US marketsFinancials and ratios on Stocks Advanced or as an add-onA filing date on the statement, no accession numberBusiness plans license commercial use
EODHDThird-party, global exchangesOn the paid Fundamentals Data Feed plan, not on FreeFiling date, no accession numberFree plan is personal use; commercial use is a separate plan
Financial Modeling PrepThird-party, normalizedFree Basic plan: 87 symbols, 5 periods per call, 250 calls a dayFiling date, no accession numberCommercial use on the Enterprise plan
Alpha VantageThird-party, normalizedStatements included, 25 requests a day on the free keyFiscal date only, no filing date or accession numberCommercial use goes through sales
SEC EDGARThe SEC itselfRaw XBRL facts since 2009; you build the statementsAccession number on every factPublic 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:

python
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             NaN

yfinance 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:

bash
curl -H "Authorization: Bearer $STOCKFIT_API_KEY" \
  "https://api.stockfit.io/v1/api/financials/income-statement?symbol=GE&period=annual&limit=6"
json
{
  "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:

json
{
  "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
    }
  ]
}
ETF holdings returned per fund
yfinance 1.8.0 funds_data.top_holdings against /api/fund/holdings/daily (totalResults), both on 2026-12-02. Log scale.

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:

json
{
  "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:

python
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 rows

The 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:

python
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:

yfinanceStockFit endpointPlan
income_stmt, quarterly_income_stmt/api/financials/income-statementFree (latest year), Starter, Pro
balance_sheet/api/financials/balance-sheetFree (latest year), Starter, Pro
cashflow/api/financials/cash-flow-statementFree (latest year), Starter, Pro
insider_transactions/api/insider-transactionsPro
institutional_holders/api/ownership/institutional-holdersPro
funds_data.top_holdings/api/fund/holdings/dailyPro

Three things change when you switch:

  • Field names are stable. revenue is revenue for every company and every year, and they are part of a documented API contract. yfinance row labels such as Total Revenue are Yahoo's.
  • Every period carries its receipts. sources lists 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-Minute and X-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?
No. The yfinance README states that it is not affiliated with, endorsed or vetted by Yahoo, and that it is an open-source tool intended for research and educational purposes. Yahoo's API terms let it change, suspend or discontinue its APIs at any time, which is why a change on Yahoo's side can break yfinance without notice.
Q.Why does yfinance return "Too Many Requests"?
Yahoo rate-limits its endpoints at its own discretion and does not publish the limits. The yfinance repository has 16 issues titled "Too Many Requests", and the largest one, issue 2422 from April 2025, has 141 comments. Caching and slower request loops help, but the limit can change at any time.
Q.Can I use yfinance commercially?
The yfinance code is Apache-licensed, but the data belongs to Yahoo. The README says the Yahoo finance API is intended for personal use only and points to Yahoo's terms, which bar deriving income from the use of its APIs without prior written permission. A product, client report or business process needs a data source with a commercial license.
Q.How many years of financial statements does yfinance return?
Measured on December 2, 2026 with yfinance 1.8.0 across ten large US companies: 4 to 5 annual income statements and 5 to 7 quarterly ones. StockFit returned 19 to 20 annual and 72 to 77 quarterly statements for the same companies on the Pro plan, back to fiscal 2007 or 2008.
Q.Does yfinance have point-in-time data?
No. yfinance returns one value per period with no filing date and no record of earlier versions. For General Electric's fiscal 2022 it returns revenue of $29,139 million, the figure restated after two spin-offs. The 10-K filed in February 2023 reported $76,555 million. A point-in-time API keeps both, with the filing behind each.
Q.Does yfinance show full ETF holdings?
No. funds_data.top_holdings returned 10 rows for SPY, QQQ, IWM and VTI and 9 for ARKK, each with a name and a percentage and no report date. StockFit's daily holdings endpoint returned 505 positions for SPY as of November 30, 2026 and 3,475 for VTI, with ticker, CUSIP, share balance and weight.
Q.What is the best yfinance alternative for fundamentals?
It depends on what you need to prove. If every number has to trace to its SEC filing, the choice is SEC EDGAR (free, raw) or StockFit (normalized statements with the accession number on every value and the restatement trail). If you mainly need licensed market data, Massive is built for that. For non-US companies, EODHD covers global exchanges.
Q.Is there a free yfinance alternative?
For fundamentals, yes, with limits. SEC EDGAR is free and complete but raw. A free StockFit key returns the latest year of normalized statements with their accession numbers, for personal use, plus 50 one-time calls to the paid endpoints. Longer history, daily ETF holdings, insider transactions and a commercial license are on the paid plans.

Ready to build?

Free API key, no credit card.