For my project I need to extract the ranking of any website from alexa by giving the url of that website . How could I possibly do that with ruby on rails or simply with javascript .
Asked
Active
Viewed 1,211 times
3 Answers
4
If you are scraping Alexa to get these informations, you're doing something illegal.
Alexa has an API. And you have to pay to use it.

Florian Margaine
- 58,730
- 15
- 91
- 116
-
Could you name some of the top web applications that use alexa api . – Subhransu Mishra May 06 '12 at 16:09
-
You can see an example here http://startupmeme.com/amazon-sues-alexaholic-for-using-alexa-api/ – Florian Margaine May 06 '12 at 16:11
-
Since summer 2015 Amazon gives 1000 cals a month for free. – Andrew Rukin Dec 12 '15 at 11:41
1
The questions was replied here
The following query:
http://data.alexa.com/data?cli=10&url=http://stackoverflow.com
returns:
<ALEXA VER="0.9" URL="stackoverflow.com/" HOME="0" AID="Hrr2p1frEw10p/" IDN="stackoverflow.com/">
<SD>
<POPULARITY URL="stackoverflow.com/" TEXT="53" SOURCE="panel"/>
<REACH RANK="54"/>
<RANK DELTA="0"/>
<COUNTRY CODE="US" NAME="United States" RANK="38"/>
</SD>
</ALEXA>

Community
- 1
- 1

Digitonaut
- 41
- 3
1
There is a way using this url
https://www.alexa.com/comparison?&sites=google.com&display=json&useCookie=false&windows[]=rank:1y
in the response you will find rank object that has 3 months stats you could use i hope this is helpful for someone
Update: This isn't working anymore sadly

BM2ilabs
- 522
- 6
- 11