{"id":13394750,"url":"https://github.com/dpguthrie/yahooquery","last_synced_at":"2025-05-15T07:04:01.256Z","repository":{"id":40593405,"uuid":"227721998","full_name":"dpguthrie/yahooquery","owner":"dpguthrie","description":"Python wrapper for an unofficial Yahoo Finance API","archived":false,"fork":false,"pushed_at":"2024-06-22T21:56:01.000Z","size":10038,"stargazers_count":829,"open_issues_count":81,"forks_count":152,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-05-09T11:56:44.169Z","etag":null,"topics":["api","api-wrapper","finance","market-data","pandas","python","stock-data","stock-market","yahoo-finance","yahoo-finance-api"],"latest_commit_sha":null,"homepage":"https://yahooquery.dpguthrie.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dpguthrie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-12-13T00:29:16.000Z","updated_at":"2025-05-07T16:50:32.000Z","dependencies_parsed_at":"2023-02-19T02:30:39.416Z","dependency_job_id":"0fa1b1ef-3dd4-4b55-9a0f-b873b4b42ba1","html_url":"https://github.com/dpguthrie/yahooquery","commit_stats":{"total_commits":303,"total_committers":7,"mean_commits":"43.285714285714285","dds":0.05280528052805278,"last_synced_commit":"841f77e32e02b3e3332c8dcd23682a8d62ad9e7d"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpguthrie%2Fyahooquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpguthrie%2Fyahooquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpguthrie%2Fyahooquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpguthrie%2Fyahooquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpguthrie","download_url":"https://codeload.github.com/dpguthrie/yahooquery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254292039,"owners_count":22046426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-wrapper","finance","market-data","pandas","python","stock-data","stock-market","yahoo-finance","yahoo-finance-api"],"created_at":"2024-07-30T17:01:30.365Z","updated_at":"2025-05-15T07:04:01.249Z","avatar_url":"https://github.com/dpguthrie.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"#\"\u003e\u003cimg src=\"docs/docs/img/full.png\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003cem\u003ePython wrapper for an unofficial Yahoo Finance API\u003c/em\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://codecov.io/gh/dpguthrie/yahooquery\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/codecov/c/github/dpguthrie/yahooquery\" alt=\"Coverage\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/yahooquery\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://badge.fury.io/py/yahooquery.svg\" alt=\"Package version\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://pepy.tech/project/yahooquery\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://pepy.tech/badge/yahooquery\" alt=\"Downloads\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n**Documentation**: \u003ca target=\"_blank\" href=\"https://yahooquery.dpguthrie.com\"\u003ehttps://yahooquery.dpguthrie.com\u003c/a\u003e\n\n**Interactive Demo**: \u003ca target=\"_blank\" href=\"https://yahooquery.streamlit.app/\"\u003ehttps://yahooquery.streamlit.app/\u003c/a\u003e\n\n**Source Code**: \u003ca target=\"_blank\" href=\"https://github.com/dpguthrie/yahooquery\"\u003ehttps://github.com/dpguthrie/yahooquery\u003c/a\u003e\n\n**Blog Post**: \u003ca target=\"_blank\" href=\"https://towardsdatascience.com/the-unofficial-yahoo-finance-api-32dcf5d53df\"\u003ehttps://towardsdatascience.com/the-unofficial-yahoo-finance-api-32dcf5d53df\u003c/a\u003e\n\n---\n\n## Overview\n\nYahooquery is a python interface to unofficial Yahoo Finance API endpoints. The package allows a user to retrieve nearly all the data visible via the Yahoo Finance front-end.\n\nSome features of yahooquery:\n\n- **Fast**: Data is retrieved through API endpoints instead of web scraping. Additionally, asynchronous requests can be utilized with simple configuration\n- **Simple**: Data for multiple symbols can be retrieved with simple one-liners\n- **User-friendly**: Pandas Dataframes are utilized where appropriate\n- **Premium**: Yahoo Finance premium subscribers are able to retrieve data available through their subscription\n\n## Requirements\n\nPython 3.9+ - **Versions on or after 2.4.0 require python 3.9+**\n\n- [Pandas](https://pandas.pydata.org) - Fast, powerful, flexible and easy to use open source data analysis and manipulation tool\n- [Requests](https://requests.readthedocs.io/en/master/) - The elegant and simple HTTP library for Python, built for human beings.\n- [Requests-Futures](https://github.com/ross/requests-futures) - Asynchronous Python HTTP Requests for Humans\n\n### Yahoo Finance Premium Subscribers\n\n- [Selenium](https://www.selenium.dev/selenium/docs/api/py/) - Web browser automation\n\n  Selenium is only utilized to login to Yahoo, which is done when the user passes certain keyword arguments. Logging into Yahoo enables users who are subscribers to Yahoo Finance Premium to retrieve data only accessible to premium subscribers.\n\n## Installation\n\nIf you're a Yahoo Finance premium subscriber and would like to retrieve data available through your subscription, do the following:\n\n```bash\npip install yahooquery[premium]\n```\n\nOtherwise, omit the premium argument:\n\n```bash\npip install yahooquery\n```\n\nYou can also install with uv if you have that installed:\n```bash\nuv pip install yahooquery\n```\n\n## Example\n\nThe majority of the data available through the unofficial Yahoo Finance API is related to a company, which is represented in yahooquery as a `Ticker`. You can instantiate the `Ticker` class by passing the company's ticker symbol. For instance, to get data for Apple, Inc., pass `aapl` as the first argument to the `Ticker` class:\n\n```python\nfrom yahooquery import Ticker\n\naapl = Ticker('aapl')\n\naapl.summary_detail\n```\n\n## Multiple Symbol Example\n\nThe `Ticker` class also makes it easy to retrieve data for a list of symbols with the same API. Simply pass a list of symbols as the argument to the `Ticker` class.\n\n```python\nfrom yahooquery import Ticker\n\nsymbols = ['fb', 'aapl', 'amzn', 'nflx', 'goog']\n\nfaang = Ticker(symbols)\n\nfaang.summary_detail\n```\n\n## License\n\nThis project is licensed under the terms of the MIT license.\n","funding_links":[],"categories":["Python"],"sub_categories":["Data Sources","数据来源"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpguthrie%2Fyahooquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpguthrie%2Fyahooquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpguthrie%2Fyahooquery/lists"}