Skip to content

How to get Alexa Rank with PHP ?

Last updated on January 17, 2018

Alexa is one of the most well known and popular web information providers. It provides information about web site’s traffic stats, reviews, backlinks and many more. Here this post is about to get Alexa rank using PHP to the given domain name

SD[1]->POPULARITY))
    $data = (int) $xml->SD[1]->POPULARITY->attributes()->TEXT;
	if($format) return number_format($data);
	return $data;

}

// usage 
echo alexa('http://www.arjun.net.in',TRUE);
// return 6,439,234
?>
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments