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.
Join the DZone community and get the full member experience.Join For Free
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"
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 ."
Published at DZone with permission of Niklas Heidloff, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.