AWS Official Blog

Alexa Web Information Service — Sample Style Sheets

by Jeff Barr | on | in Announcements | | Comments

We have created some sample XSLT style sheets for the Alexa Web Information Service (AWIS). You are free to use these as-is or to copy them and modify them as needed to suit your own needs.

Use client.alexa.com/awis/xsl/ExampleSearch.xsl to format the XML returned from a call to the AWIS Search function.

Use client.alexa.com/awis/xsl/ExampleUrlInfo.xsl to format the XML returned from a call to the AWIS URLInfo function.

Use client.alexa.com/awis/xsl/ExampleBrowse.xsl  to format the XML returned from a call to the AWIS Category function.

Here are sample AWIS calls which make use of these style sheets. Remember to replace “SUB_ID” with your subscription ID. You should also take care to remove any embedded space characters in the URLs (we added these to keep the page from getting too wide).

Search – http://aws-beta.amazon.com/onca/xml?Service=AlexaWebInfoService& Operation=Search&ContentType=text/html&Query=ExampleSearchHomePage& Style=http:
//client.alexa.com/awis/xsl/ExampleSearch.xsl& SubscriptionId=SUB_ID
.

URLInfo – http://aws-beta.amazon.com/onca/xml?Url=www.food.com&Service=AlexaWebInfoService& Operation=UrlInfo&ContentType=text/html& ResponseGroup=RelatedLinks,Categories,Related, Rank,UsageStats,TrafficData,ContactInfo,AdultContent,Speed,Language,ContentData& Style=http://client.alexa.com/awis/xsl/ExampleUrlInfo.xsl&SubscriptionId=SUB_ID

Category – http://aws-beta.amazon.com/onca/xml?Service=AlexaWebInfoService& Operation=Category&ResponseGroup=Browse&ContentType=text/html& Style=http://clien
t.alexa.com/awis/xsl/ExampleBrowse.xsl&Path=Top& SubscriptionId=SUB_ID