yahooquery
Python wrapper for an unofficial Yahoo Finance API
What it is and what it does
Yahooquery is a Python wrapper around Yahoo Finance's unofficial API endpoints, letting you fetch stock quotes, company fundamentals, and market data without web scraping. It returns data as pandas DataFrames, making it easy to work with financial datasets in analysis pipelines. The package supports both single ticker lookups and batch requests for multiple symbols, and can use asynchronous requests for faster data retrieval.
The package depends on pandas for data structures, requests-futures for async HTTP, beautifulsoup4 and lxml for parsing, and curl-cffi for HTTP requests. It targets Python 3.9+. Premium Yahoo Finance subscribers can optionally install Selenium support to authenticate and access subscription-only data, though the core package works without it.
Use it for:
- Fetch current stock quotes and historical price data for a portfolio of ticker symbols into a single DataFrame.
- Build a financial analysis script that retrieves company fundamentals (earnings, revenue, ratios) for comparison across multiple stocks.
- Populate a pandas-based backtesting system with real-time market data from Yahoo Finance without maintaining a separate data feed.
- Create a monitoring dashboard that periodically pulls updated financial metrics for a watchlist of stocks.
- Access premium Yahoo Finance data (if subscribed) programmatically for institutional or professional analysis workflows.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Retrieves financial data from Yahoo Finance through an unofficial API, returning stock information, company details, and market data as pandas DataFrames for single or multiple ticker symbols.
Yes, if you need quick access to Yahoo Finance data and can tolerate the unofficial API's stability risks. The low install friction and pandas integration make it convenient for financial analysis scripts. However, the aging maintenance status (last release 456 days ago) means the unofficial API could break without timely fixes, so verify current reliability before depending on it in production systems.
Install
yahooquery on PyPI
pip
pip install yahooqueryuv
uv add yahooquerypoetry
poetry add yahooqueryInstalling yahooquery
Before you install
Low install friction with six runtime dependencies (beautifulsoup4, curl-cffi, lxml, pandas, requests-futures, tqdm). Maintenance status is aging—last release was 456 days ago—so expect slower response to issues or breaking API changes from Yahoo Finance.
License in practice
MIT license is permissive; you can use, modify, and distribute yahooquery with minimal restrictions, though you must retain the license notice.
Quickstart
pip install yahooquery
from yahooquery import Ticker
aapl = Ticker('aapl')
print(aapl.summary_detail)
Requires Python 3.9 or later. Yahoo Finance API endpoints are unofficial and subject to change without notice.
Verify before relying
- Whether the unofficial Yahoo Finance API remains stable and accessible, or if endpoint changes have broken functionality since the last release 456 days ago.
- Whether asynchronous request support mentioned in the description is fully functional and documented in current version.
- Premium subscriber features (Selenium-based login) and their current reliability with Yahoo's authentication.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — beautifulsoup4, curl-cffi, lxml, pandas, requests-futures, tqdm |
| Maintenance | aging — 456 days since the last release |
| First released | |
| Downloads | 162,598/month — #10,594 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: yahooquery-2.4.1-py3-none-any.whl
Keywords: API, Yahoo Finance, finance, python, stocks
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
alpha-vantageFetches real-time and historical stock,…
permissive · top 15,000 on PyPI
tickflowTickFlow is a Python client for accessing…
permissive · top 15,000 on PyPI
yfinanceFetches financial and market data from Yahoo…
permissive · top 1,000 on PyPI
efinanceFetches historical and real-time stock, fund,…
permissive · top 15,000 on PyPI
Nasdaq-Data-LinkProvides Python access to Nasdaq Data Link's…
permissive · top 15,000 on PyPI
finnhub-pythonFinnhub-python is a client library for the…
permissive · top 15,000 on PyPI
pykrxScrapes Korean stock and bond market data from…
permissive · top 15,000 on PyPI
baostockBaoStock retrieves historical China stock…
permissive · top 15,000 on PyPI
QuandlQuandl provides a Python client for accessing…
permissive · top 15,000 on PyPI
openbb-yfinanceIntegrates Yahoo!Finance data into the OpenBB…
agpl · top 15,000 on PyPI