Here is a php code that lets you retrieve a website’s alexa ranking, useful in web applications that measure importance of webpages (such as bespoke link popularity tools).
For this code snippet to work CURL library for php needs to be enabled on your server.
Code:
To display the Alexa ranking, use the following code :
echo alexaRank(‘site.com’);
