Home » API » Alchemy API Integration

Alchemy API Integration

Posted in API Tagged , ,

Alchemy API is used to analyze content of URLs which are targeted for ads. It returns certain keywords that are relevant to the specified URL. For each keyword a relevance parameter and a sentiment score is returned.

Data is requested in XML format, via a CURL call to their API. The obtained response is processed as per the analysis algorithm. The entire functionality runs in background. Alchemy has limit of 1000 API calls within a 24 hour period. The limit is tracked and URLs are not reprocessed multiple times if they have been recently processed.

XML output from Alchemy API is in the below format.

<results>
<status>REQUEST_STATUS</status>
<url>REQUESTED_URL</url>
<language>DOCUMENT_LANGUAGE</language>
<text>DOCUMENT_TEXT</text>
<keywords>
<keyword>
<text>DETECTED_KEYWORD</text>
<relevance>DETECTED_RELEVANCE</relevance>
<sentiment>
<type>SENTIMENT_LABEL</type>
<score>SENTIMENT_SCORE</score>
</sentiment>
</keyword>
</keywords>
</results>

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>