The Alexa Web Information Service API makes Alexa’s vast repository of information about the web traffic and structure of the web available to developers. The following figure illustrates weekly page views of google website collected through the Alexa Web Information Service API.
To retrieve web traffic data, you have to request queries using Alexa API. Alexa provides some sample codes. However, they are written in Java, PHP, PERL, and RUBY. Thus, I would like to introduce a sample code written in R to extract web traffic data interacting with Alexa Web Information Service.