0

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 .

Subhransu Mishra
  • 3,035
  • 11
  • 40
  • 47

3 Answers3

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
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