Status
Not open for further replies.

Tango

Moderator
Staff member
4,052
2009
1,607
15,105
One of my sites uses alexa API. Until yesterday it returned Global Rank, now even alexa toolbar wont always show results.

The old Free API, doesn't show global rank
Code:
http://data.alexa.com/data?cli=10&url=wjunction.com

I tried scraping alexa.com for the info but they block everything tells you to goto
Code:
https://aws.amazon.com/alexa/


I signed up, sorted API etc. but there example script doesn't always return Global Rank :(

PHP:
Action=UrlInfo&Count=10&ResponseGroup=Rank%2CContactInfo%2CLinksInCount&SignatureMethod=HmacSHA256&SignatureVersion=2&Start=1&Timestamp=2016-03-12T00%3A16%3A56.000Z&Url=dirtywarez.org Phone Number: Owner Name: Email: Street: City: State: Postal Code: Country: Links In Count: 58 Rank: 


.


https://aws.amazon.com/code/AWIS
Has anyone got Alexa info working since yesterday?
 
Last edited:
3 comments
First I think you should correct the object :)

Our server read Alexa data daily and currently is working fine.
We have made a vb.net app which download and parse the data.
You have to use the webclient object to download it and, then, parse the page.
Here is a fast example of the webclient object:

Dim t_Alexa As String = t_site_url.Replace("http://", "").Replace("https://", "").Replace("www.", "")

If t_Alexa.Contains("/") Then
t_Alexa = Strings.Left(t_Alexa, Strings.InStr(t_Alexa, "/") - 1)
End If

t_alexa_url = "http://www.alexa.com/siteinfo/" & t_Alexa

Try
Dim t_WebClient As WebClient = New WebClient()
Dim t_Buffer As String = Nothing

t_Buffer = System.Text.Encoding.UTF8.GetString(t_WebClient.DownloadData(t_alexa_url))

Else
label_errmsg.Text = " | Cannot download Alexa data"
End If
Catch ex As Exception
label_errmsg.Text = " | Cannot download Alexa data: " & ex.Message
End Try

The get the rank, just search for:
data-cat="globalRank"
class=""metrics-data

the rank is between ">" and "<"
 
Status
Not open for further replies.
Back
Top