When you're managing a portfolio of stocks it's important to stay up to date with company news. Has Apple, Inc. announced a new version of the iPhone? Is the management shifting at Exxon Mobil? Are new regulations affecting Tesla's future performance? Easy access to these updates via a News API helps you keep a pulse not only on the company and its performance, but on the general media and public sentiment.
This article explains how to pull the latest news on the stocks you follow via the Intrinio News API.
Getting Started With the Intrinio News API
To get started accessing news for various stocks, register for an account with Intrinio. It's free.
You'll notice that you're automatically subscribed to three feeds, for free:
But first, you'll need to get started with your access method of choice. Will you leverage the news data through the Intrinio API, or would you rather use it in Excel?
This blog walks you through getting started with the API, and this tutorial will take you through each step in getting the Excel add-in installed. You can access the News API through either of these tools.
Accessing the Latest News For Your Stocks
Once you're ready with the API or the Excel add-in, you can check out the News API documentation. Here you'll find example calls for pulling in the latest stories on the stocks you follow.
Sample News API Calls
Here is an example API call from the News API:
API URI: https://api.intrinio.com
FULL URL: https://api.intrinio.com/news?identifier=AAPL
"title": "[$$] How will Twitter's suitors reap its value?",
"publication_date": "2016-09-25 12:12:33 +0000",
"summary": "[at Financial Times] - Twitter may finally be running out of time. News at the end of last week that Google and cloud software company Salesforce have both held preliminary discussions about a possible acquisition have underlined ..."
"title": "If Apple built a car, here are the companies it would probably work with",
"publication_date": "2016-09-25 12:00:00 +0000",
"summary": "If Apple built a car, here are the companies it would probably work with"
As you can see, choosing the identifier "AAPL" will return a list of the latest news stories for Apple, Inc. If you'd like to isolate specifics, like the title or the publication date, you can parse that information out of the main API call.
Sample News API Calls in Excel
The News API function for Excel has three parameters. The ticker, the item you want returned, and a sequence. You can search all available tickers via our Coverage. The available items for return are:
- Publication Date
The sequence, much like other Intrinio API calls, identifies which news article you want to pull in. A sequence of 0 will pull in the most recent. A sequence of 1 will pull in the second most recent, and so on.
If you find that you're hitting your limit on the Free Plan for the US Fundamentals and Stock Prices Data Feed, you can subscribe to a plan that has more access. The Individual Plan comes with 5,000 daily data points and is just $40/month.
Remember that if you run into issues you can chat our team at any time.
We're here to help and make sure you get the most out of the data. Enjoy!