Search & News#

Class#

The Search module, allows you to access search data in a Pythonic way.

Search(query[, max_results, news_count, ...])

Fetches and organizes search results from Yahoo Finance, including stock quotes and news articles.

Search Sample Code#

The Search module, allows you to access search data in a Pythonic way.

import yfinance as yf

# get list of quotes
quotes = yf.Search("AAPL", max_results=10).quotes

# get list of news
news = yf.Search("Google", news_count=10).news

# get list of related research
research = yf.Search("apple", include_research=True).research