yfinance
Download market data from Yahoo! Finance API
Install
yfinance on PyPI
pip
pip install yfinanceuv
uv add yfinancepoetry
poetry add yfinancePackage facts
| License | Apache-2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 12 — beautifulsoup4, curl_cffi, lxml, multitasking, numpy, pandas, peewee, platformdirs, protobuf, pytz, requests, websockets |
| Maintenance | actively maintained — 0 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: yfinance-1.6.0-py3-none-any.whl
Keywords: pandas, yahoo finance, pandas datareader
About yfinance
from the package's own PyPI description — quoted content, verbatim
<img src="./doc/yfinance-gh-logo-dark.webp#gh-dark-mode-only" height="100"> <img src="./doc/yfinance-gh-logo-light.webp#gh-light-mode-only" height="100">
Download market data from Yahoo! Finance's API
<a target="new" href="https://pypi.python.org/pypi/yfinance"><img border=0 src="https://img.shields.io/badge/python-2.7,%203.6+-blue.svg?style=flat" alt="Python version"></a> <a target="new" href="https://pypi.python.org/pypi/yfinance"><img border=0 src="https://img.shields.io/pypi/v/yfinance.svg?maxAge=60%" alt="PyPi version"></a> <a target="new" href="https://pypi.python.org/pypi/yfinance"><img border=0 src="https://img.shields.io/pypi/status/yfinance.svg?maxAge=60" alt="PyPi status"></a> <a target="new" href="https://pypi.python.org/pypi/yfinance"><img border=0 src="https://img.shields.io/pypi/dm/yfinance.svg?maxAge=86400&label=installs&color=%2327B1FF" alt="PyPi downloads"></a> <a target="new" href="https://github.com/ranaroussi/yfinance"><img border=0 src="https://img.shields.io/github/stars/ranaroussi/yfinance.svg?style=social&label=Star&maxAge=60" alt="Star this repo"></a> <a target="new" href="https://x.com/intent/follow?screen_name=aroussi"><img border=0...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
yfinance fetches financial and market data from Yahoo! Finance's API, providing Pythonic access to ticker information, historical prices, and live streaming data for research and educational purposes.
Low friction: pure-Python wheel with 12 runtime dependencies. Active maintenance with recent release (2026-08-13) signals strong ongoing support.
Apache-2.0 permissive license allows commercial and private use with minimal restrictions. However, you must comply with Yahoo!'s terms of use for the underlying data, which restricts use to personal, research, and educational purposes.
Usage
pip install yfinance
import yfinance as yf
data = yf.Ticker('AAPL')
print(data.info)
Yahoo! Finance API is intended for personal use only; commercial use may violate Yahoo!'s terms of service.
Verdict: yfinance is actively maintained with strong community adoption (top_1000 tier, 24985 stars) and zero known vulnerabilities. Its permissive Apache-2.0 license poses no technical barrier, but users must independently verify compliance with Yahoo!'s terms of use, which restrict the data itself to personal and educational use.
Needs verification
- Whether curl_cffi is required or optional for production use (documentation mentions fallback option)
- Current rate-limiting or API stability guarantees from Yahoo! Finance
- Whether the package actively maintains compatibility with Python 3.6–3.7 or has de facto dropped support
Similar packages
permissive · top 1,000 on PyPI
genai-pricespermissive · top 1,000 on PyPI
streamlitpermissive · top 1,000 on PyPI
flatbufferspermissive · top 1,000 on PyPI
pybreakerpermissive · top 1,000 on PyPI
mlflow-tracingpermissive · top 1,000 on PyPI
vcrpypermissive · top 1,000 on PyPI
litellmpermissive · top 100 on PyPI
awswranglerpermissive · top 1,000 on PyPI
pyasn1-modulespermissive · top 100 on PyPI