skillfed

yahooquery

Python wrapper for an unofficial Yahoo Finance API

yahooquery v2.4.1 162.6K downloads/30d#10,594 on PyPI
Permissive license MIT AGING released

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 yahooquery

uv

uv add yahooquery

poetry

poetry add yahooquery

Installing 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

yahoo finance api wrapperstock data retrieval pythonticker symbol financial datamarket data pandas dataframeunofficial yahoo financestock quotes and fundamentalsfinancial data scraping alternative
finance-datastock-marketapi-wrapper

More WWW/HTTP packages