AlchemyAPI is a collection of APIs that help you understand text and images.
Here are three links to checkout before moving on:
Get your free API key
Alright, now that you have your API key, you can continue on with these examples. Simply replace your API key and copy into a browser tab.
Working with Text:
Using the “combined” call, you can extract a large amount of meta data from any document or URL including entities, relations, concepts, sentiment, taxonomy and more.
// replace YOUR API KEY http://access.alchemyapi.com/calls/url/URLGetCombinedData?apikey=YOUR_API_KEY&outputMode=json&knowledgeGraph=1&extract=page-image,image-kw,feed,entity,keyword,title,author,taxonomy,concept,relation,pub-date,doc-sentiment&url=https://www.reddit.com/r/announcements/comments/3djjxw/lets_talk_content_ama/
To get “clean” text from a web page by removing ads and other unnecessary content:
// replace YOUR API KEY http://access.alchemyapi.com/calls/url/URLGetRawText?apikey=YOUR API KEY&url=http://www.cnn.com/2009/CRIME/01/13/missing.pilot/index.html
Working with Images:
To find objects and text within an image, combine these two AlchemyVision API calls:
// replace YOUR API KEY http://access.alchemyapi.com/calls/url/URLGetRankedImageSceneText?apikey=YOUR API KEY&outputMode=json&url=http://www.coloradoski.com/uploads/Telluride_Helitrax_brett_schreckengost_logos.jpg http://access.alchemyapi.com/calls/url/URLGetRankedImageKeywords?apikey=YOUR API KEY&outputMode=json&url=http://www.coloradoski.com/uploads/Telluride_Helitrax_brett_schreckengost_logos.jpg
To find demographics of the people within an image, use the Face call:
// replace YOUR API KEY http://access.alchemyapi.com/calls/url/URLGetRankedImageFaceTags?apikey=YOUR API KEY&outputMode=json&knowledgeGraph=1&url=https://instagram.com/p/34XsRcxCAR/
Querying the News:
To get news articles about IBM over the past 24 hours:
// replace YOUR API KEY http://access.alchemyapi.com/calls/data/GetNews?apikey=YOUR API KEY&outputMode=json&start=now-1d&end=now-0d&maxResults=10&q.enriched.url.enrichedTitle.entities.entity=|text=ibm,type=company|&label_format_string=enriched.url.url,enriched.url.title
and to find approximately how many articles were published by the WSJ over the past 30 days grouped by day:
// replace YOUR API KEY http://access.alchemyapi.com/calls/data/GetNews?apikey=YOUR API KEY&outputMode=json&start=now-30d&end=now&timeSlice=1d&q.enriched.url.url=wsj
About Language Support:
AlchemyAPI provides named entity extraction capabilities in 8 different languages: English, French, German, Italian, Portuguese, Russian, Spanish, and Swedish. View full Language Support