All News by Company

All News by Company Python API Documentation

Returns the latest and historical news article links, headlines and summaries for a specified US traded company.

API Class:
CompanyApi
Instance Method:
get_company_news()

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'
specific_source = ''
page_size = 100
sentiment = ''
topic = ''
security = 'AAPL'
start_date = ''
end_date = ''
language = ''
word_count_greater_than = ''
word_count_less_than = ''
is_spam = ''
business_relevance_greater_than = ''
business_relevance_less_than = ''
next_page = ''
response = intrinio.CompanyApi().get_company_news(identifier, specific_source=specific_source, page_size=page_size, sentiment=sentiment, topic=topic,
  security=security, start_date=start_date, end_date=end_date, language=language, word_count_greater_than=word_count_greater_than,
  word_count_less_than=word_count_less_than, is_spam=is_spam, business_relevance_greater_than=business_relevance_greater_than,
  business_relevance_less_than=business_relevance_less_than, next_page=next_page)
print(response)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierstrA Company identifier (Ticker, CIK, LEI, Intrinio ID) 
specific_sourcestrOnly news from this source. Defaults to highest available if not present.[optional]  
page_sizeintThe maximum number of results to return[optional] [default to 100]  
sentimentstrFilter by sentiment. Unsupported for yahoo source.[optional]  
topicstrFilter by topic. Unsupported for yahoo source.[optional]  
securitystrFilter by `security` identifier (ticker, figi, isin, cusip, Intrinio ID). Unsupported for yahoo source.[optional]  
start_datedateLimit news stories to those on or after this date. Defaults to yesterday if unspecified.[optional]  
end_datedateLimit news stories to those on or before this date[optional]  
languagestrFilter by language. Unsupported for yahoo source.[optional]  
word_count_greater_thanintNews stories will have a word count greater than this value. Unsupported for yahoo source.[optional]  
word_count_less_thanintNews stories will have a word count less than this value. Unsupported for yahoo source.[optional]  
is_spamboolFilter whether it is marked as spam or not. Unsupported for yahoo source.[optional]  
business_relevance_greater_thanfloatNews stories will have a business relevance score more than this value. Unsupported for yahoo source.[optional]  
business_relevance_less_thanfloatNews stories will have a business relevance score less than this value. Unsupported for yahoo source.[optional]  
next_pagestrGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseCompanyNews

Properties

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

Properties

NameTypeDescription
idstrThe Intrinio ID for the news article  
titlestrThe title of the news article  
publication_datedatetimeThe publication date of the news article  
urlstrThe url of the news article  
summarystrA summary of the news article  
sourcestrThe news source.  
topicslist[NewsTopic] 
copyrightstrThe copyright of the news article  
languagestrThe language code of the news article  
word_countintThe word count of the news article  
spamboolWhether the news article is marked as spam or not  
business_relevancefloatHow strongly correlated the news article is to the business  
article_sentimentstrThe news sentiment.  
article_sentiment_confidencefloatThe confidence score of the sentiment rating  
object
NewsTopic

Properties

NameTypeDescription
namestrThe description of the topic.  
object
CompanySummary

Properties

NameTypeDescription
idstrThe Intrinio ID of the company  
tickerstrThe stock market ticker symbol associated with the company's common stock securities  
namestrThe company's common name  
leistrThe Legal Entity Identifier (LEI) assigned to the company  
cikstrThe Central Index Key (CIK) assigned to the company