heidloff.net - Building is my Passion
Post
Cancel

News Analysis via AlchemyAPI for Topics, Companies and People

The AlchemyAPI service on Bluemix provides an API to access news and blog content from the last 60 days enriched with meta information like sentiments and entities identified through natural language processing. This allows, for example, to build applications focussed on trend analysis for certain topics, companies or people.

The AlchemyData News API indexes 250k to 300k English language news and blog articles every day and stores the last two months. The News API uses internally several of the AlchemyLanguage APIs to analyze text and to perform more than just simple keyword based searches.

Here is a quick sample. With the following command you can invoke a query for positive news about IBM in the last two days. Since currently the IBM Connect conference is going on, news about this event is found.

1
curl -G  "https://access.alchemyapi.com/calls/data/GetNews?apikey=[YOUR_API_KEY]&return=enriched.url.title,enriched.url.url,enriched.url.author,enriched.url.publicationDate,enriched.url.enrichedTitle.docSentiment&start=now-2d&end=now&q.enriched.url.enrichedTitle.entities.entity=|text=IBM,type=company|&q.enriched.url.enrichedTitle.docSentiment.type=positive&count=25&outputMode=json"

image

To find out more about this service read the documentation and watch the videos “Building With Watson – Using the News API” and “Using AlchemyAPI for Finance“.

There is also an online demo where you can enter your own queries. A more sophisticated application is the “News Explorer“. My colleague Jonathan Kaufman open sourced another sample “Election Insights“.

Featured Blog Posts
Disclaimer
The postings on this site are my own and don’t necessarily represent IBM’s positions, strategies or opinions.
Trending Tags