views:

186

answers:

5

Hi,

How may I get the ranking statistics of a particular website using PHP, I'm talking about services like statbrain.com. I know I'll have to use other sources like Google, Yahoo and Alexa etc and that's what I want to know, how do I use these sources to get the data?

Things I would like to know are number of visitors, Google PageRank, backlinks etc...

Any ideas and hints will be really appreciated

+2  A: 
Colin Pickard
A: 

You could have your PHP script connect to another website that can calculate the ranks of a particular page, and then scrape the answer. However this would be worse than simply going to the site itself.

AlbertoPL
A: 

There is the paying Linkscape from Seomoz or the free majesticSEO (if you confirm ownership of a domain).

MajesticSEO has a bigger backlink index and an API (need to login!).

MajesticSEO offers free basic data about a domain, ie for stackoverflow.com

elhoim
A: 

you should use the Google Webmasters tools API in combination with the Google Analytics API. It will get you the info you need.

Sarah Nasir
A: 

You can get Alexa Rank using this Php Class to Retrieve Alexa Rank.

php html