Zacks Analyst Ratings

Zacks Analyst Ratings Python API Documentation

This database offers consensus analyst recommendations for over 5,000 US and Canadian listed companies.

API Class:
ZacksApi
Instance Method:
get_zacks_analyst_ratings()

Stock Price Code Example

Use my API Key
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
identifier = 'AAPL'
page_size = 100
next_page = ''
response = intrinio.ZacksApi().get_zacks_analyst_ratings(identifier=identifier, page_size=page_size, next_page=next_page)
print(response)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierstrA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)[optional]  
start_datedateLimit ratings to those on or after this date[optional]  
end_datedateLimit ratings to those on or before this date[optional]  
mean_greaterfloatReturn only records with a mean (average) higher than this value[optional]  
mean_lessfloatReturn only records with a mean (average) lower than this value[optional]  
strong_buys_greaterintReturn only records with more than this many Strong Buy recommendations[optional]  
strong_buys_lessintReturn only records with fewer than this many Strong Buy recommendations[optional]  
buys_greaterintReturn only records with more than this many Buy recommendations[optional]  
buys_lessintReturn only records with fewer than this many Buy recommendations[optional]  
holds_greaterintReturn only records with more than this many Hold recommendations[optional]  
holds_lessintReturn only records with fewer than this many Hold recommendations[optional]  
sells_greaterintReturn only records with more than this many Sell recommendations[optional]  
sells_lessintReturn only records with fewer than this many Sell recommendations[optional]  
strong_sells_greaterintReturn only records with more than this many Strong Sell recommendations[optional]  
strong_sells_lessintReturn only records with fewer than this many Strong Sell recommendations[optional]  
total_greaterintReturn only records with more than this many recommendations, regardless of type[optional]  
total_lessintReturn only records with fewer than this many recommendations, regardless of type[optional]  
page_sizeintThe number of results to return[optional] [default to 100]  
next_pagestrGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseZacksAnalystRatings

Properties

NameTypeDescription
analyst_ratingslist[ZacksAnalystRating] 
next_pagestrThe token required to request the next page of the data. If null, no further results are available.  
object
ZacksAnalystRating

Properties

NameTypeDescription
idstrThe Intrinio ID for the record  
datedateThe date of the Zacks Analyst Rating.  
meanfloatThe mean (average) weighing of analyst recommendations, from 1 (strong buy) to 5 (strong sell).  
strong_buysintThe number of analysts recommending Strong Buy.  
buysintThe number of analysts recommending Buy.  
holdsintThe number of analysts recommending Hold.  
sellsintThe number of analysts recommending Sell.  
strong_sellsintThe number of analysts recommending Strong Sell.  
totalintThe total number of analyst recommendations.  
securitySecuritySummaryThe Security of the Zacks Analyst Rating  
object
SecuritySummary

Properties

NameTypeDescription
idstrThe Intrinio ID for Security  
company_idstrThe Intrinio ID for the Company for which the Security is issued  
exchangestrThe exchange's MIC  
exchange_micstrThe security's exchange MIC  
stock_exchange_idstrThe exchange's Intrinio ID  
namestrThe name of the Security  
codestrA 2-3 digit code classifying the Security (reference)  
currencystrThe currency in which the Security is traded on the exchange  
tickerstrThe common/local ticker of the Security  
composite_tickerstrThe country-composite ticker of the Security  
figistrThe OpenFIGI identifier  
composite_figistrThe country-composite OpenFIGI identifier  
share_class_figistrThe global-composite OpenFIGI identifier  
primary_listingboolIf True, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange