Advanced

Yahoo Finance Premium

If you subscribe to Yahoo Finance Premium, yahooquery can log in on your behalf and retrieve the data your subscription unlocks — research reports, extended fundamentals, and premium screeners.

Install the premium extra

bashterminal
pip install yahooquery[premium]

This pulls in Selenium, which is used for exactly one thing: logging in to Yahoo through a real browser session.

Log in and query

pythonpremium.py
from yahooquery import Ticker

aapl = Ticker('aapl', username='[email protected]',
              password='your-password')

# premium-only modules now resolve
aapl.research_insights
Security note: never hard-code credentials in scripts you commit. Use environment variables or a secrets manager, and keep .env files out of version control.

How the login works

  • Selenium drives a browser through Yahoo’s sign-in flow once.
  • The resulting session cookies are reused for subsequent API calls.
  • No browser is involved unless you pass login arguments — everything else in the library is plain HTTP.

What premium unlocks

ModuleContents
research_insightsAnalyst research summaries and technical events
premium screenersPredefined and saved premium screens
extended fundamentalsAdditional line items beyond the free modules
Not a subscriber? Everything else in yahooquery works without an account — premium is strictly additive.