Over a million developers have joined DZone.

News Analysis via AlchemyAPI for Topics, Companies, and People

Bluemix's AlchemyAPI service offers API access to blogs and other news content over a two month period. Learn more about AlchemyAPI, and news aggregation with this neat service.

· Integration Zone

Build APIs from SQL and NoSQL or Salesforce data sources in seconds. Read the Creating REST APIs white paper, brought to you in partnership with CA Technologies.

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.

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"


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."

The Integration Zone is brought to you in partnership with CA Technologies.  Use CA Live API Creator to quickly create complete application backends, with secure APIs and robust application logic, in an easy to use interface.


Published at DZone with permission of Niklas Heidloff, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}