{"id":23002,"library":"yahooquery","title":"yahooquery","description":"Python wrapper for an unofficial Yahoo Finance API. Provides access to stock fundamentals, historical prices, financial data, and more via REST endpoints. Current version: 2.4.1. Release cadence: irregular.","status":"active","version":"2.4.1","language":"python","source_language":"en","source_url":"https://github.com/dpguthrie/yahooquery","tags":["yahoo-finance","stock-data","finance","api-wrapper"],"install":[{"cmd":"pip install yahooquery","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"HTTP requests to Yahoo Finance API","package":"requests","optional":false},{"reason":"Data manipulation and output formatting","package":"pandas","optional":true}],"imports":[{"note":"Various other Yahoo Finance libraries have different import paths.","wrong":"from yahoo_finance import Ticker","symbol":"Ticker","correct":"from yahooquery import Ticker"},{"note":"","wrong":null,"symbol":"Search","correct":"from yahooquery import Search"}],"quickstart":{"code":"from yahooquery import Ticker\n\nticker = Ticker('AAPL')\nprint(ticker.price)","lang":"python","description":"Create a Ticker object and fetch current price."},"warnings":[{"fix":"Replace .get_historical(period='1y') with .history(period='1y')","message":"The `get_historical` method is deprecated; use `history` instead.","severity":"deprecated","affected_versions":">=2.0.0"},{"fix":"Always check for updates and test your scripts regularly.","message":"Yahoo Finance API endpoints change frequently. Some methods may break without notice.","severity":"gotcha","affected_versions":"all"},{"fix":"Insert delays between requests (e.g., time.sleep(1)).","message":"Rate limiting is not documented. Making too many requests in a short time may result in temporary IP blocks.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use `from yahooquery import Ticker`","cause":"Incorrect import: using `import yahooquery` instead of `from yahooquery import Ticker`","error":"AttributeError: module 'yahooquery' has no attribute 'Ticker'"},{"fix":"Check the symbol exists and is active. Wrap calls in try/except or validate with `ticker.summary_profile`","cause":"The API returned no data for the given symbol (e.g., delisted or invalid ticker).","error":"TypeError: 'NoneType' object is not subscriptable"},{"fix":"Update yahooquery to latest version. If persists, the ticker may be delisted.","cause":"Yahoo Finance API endpoint changed or ticker not found.","error":"requests.exceptions.HTTPError: 404 Client Error: Not Found"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}