finviz-api

Flask web application that utilizes... - TTL Cache - The Unofficial Finviz API (with some minor tweaks)

to provide API access to Finviz.com

rate limit: 5 requests / route / hour

API Routes

get_stocks/\<str:ticker>

Returns a dictionary containing stock data.
:param ticker: stock symbol
:type ticker: str
:return dict

get_insider/\<str:ticker>

Returns a list of dictionaries containing all recent insider transactions.
:param ticker: stock symbol
:return: list

get_news/\<str:ticker>

Returns a list of sets containing news headline and url
:param ticker: stock symbol
:return: list

get_analyst_price_targets/\<str:ticker>

Returns a list of dictionaries containing all analyst ratings and Price targets
 - if any of 'price_from' or 'price_to' are not available in the DATA, then those values are set to default 0
:param ticker: stock symbol
:param last_ratings: most recent ratings to pull
:return: list

Disclaimer

Using the library to acquire data from FinViz is against their Terms of Service and robots.txt. Use it responsibly and at your own risk. This library is built purely for educational purposes.