All News

All News Ruby API Documentation

Returns the latest news article links, headlines and summaries for all US traded companies allowing you to keep a pulse on companies and their business operations.

API Class:
Intrinio::CompanyApi
Instance Method:
get_all_company_news()

Stock Price Code Example

Use my API Key
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
company_api = Intrinio::CompanyApi.new
opts = {
specific_source: nil,
page_size: 100,
sentiment: nil,
topic: nil,
company: "AAPL",
security: "AAPL",
start_date: nil,
end_date: nil,
language: nil,
word_count_greater_than: nil,
word_count_less_than: nil,
is_spam: nil,
business_relevance_greater_than: nil,
business_relevance_less_than: nil,
next_page: nil
}
result = company_api.get_all_company_news(opts)
pp result
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
specific_sourceStringOnly news from this source. Defaults to highest available if not present.[optional]  
page_sizeIntegerThe maximum number of results to return.[optional] [default to 100]  
sentimentStringFilter by sentiment. Unsupported for yahoo source.[optional]  
topicStringFilter by topic. Unsupported for yahoo source.[optional]  
companyStringFilter by `company` identifier (ticker, CIK, LEI, Intrinio ID)[optional]  
securityStringFilter 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]  
languageStringFilter by language. Unsupported for yahoo source.[optional]  
word_count_greater_thanIntegerNews stories will have a word count greater than this value. Unsupported for yahoo source.[optional]  
word_count_less_thanIntegerNews stories will have a word count less than this value. Unsupported for yahoo source.[optional]  
is_spamBOOLEANFilter 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_pageStringGets the next page of data from a previous API call[optional]  

Return Type

object
Intrinio::ApiResponseNews

Properties

NameTypeDescription
newsArray 
next_pageStringThe token required to request the next page of the data. If null, no further results are available.  
object
Intrinio::CompanyNews

Properties

NameTypeDescription
idStringThe Intrinio ID for the news article  
titleStringThe title of the news article  
publication_dateDateTimeThe publication date of the news article  
urlStringThe url of the news article  
summaryStringA summary of the news article  
sourceStringThe news source.  
companyCompanySummaryThe Company to which the new article pertains  
topicsArray 
copyrightStringThe copyright of the news article  
languageStringThe language code of the news article  
word_countIntegerThe word count of the news article  
spamBOOLEANWhether the news article is marked as spam or not  
business_relevanceFloatHow strongly correlated the news article is to the business  
article_sentimentStringThe news sentiment.  
article_sentiment_confidenceFloatThe confidence score of the sentiment rating  
object
Intrinio::CompanySummary

Properties

NameTypeDescription
idStringThe Intrinio ID of the company  
tickerStringThe stock market ticker symbol associated with the company's common stock securities  
nameStringThe company's common name  
leiStringThe Legal Entity Identifier (LEI) assigned to the company  
cikStringThe Central Index Key (CIK) assigned to the company  
object
Intrinio::NewsTopic

Properties

NameTypeDescription
nameStringThe description of the topic.