问题
I have a list of domains and would like to get the:
- PageRank for all the domains. So just an integer, there must be an API that returns this.
- The number of results in Google
- The position of the word of the domainname. For example, "google.com" would be the position of the word "google". This could be position 20.
回答1:
This will have everything you need. https://github.com/eyecatchup/SEOstats
Amazing.
回答2:
I've published a Pagerank API that returns a json array, containing the checksum and the Pagerank of any URL.
I also have a bunch of related tools and a Google code project that might interest you.
回答3:
There isn't an API. However, there are ways to do it, all potentially problematic. If you were willing to use Python, I recently discovered a script to do it.
Google used to have a SOAP API, but no longer. Some people scrape the results. You can try to get it from the AJAX API, but there's not a public API for this.
I don't understand you question here. Could you clarify and I'll update my answer?
回答4:
Try this guy: http://www.fourmilab.ch/webtools/PageRank/
although written in perl, you can issue a call to your OS from PHP to run this, then further process the output. Make sure to put http:// at the beginning your your query, and not hit the google server more often than once per second, and sanitize (urlencode) the user input if users will be using this.
来源:https://stackoverflow.com/questions/1344917/getting-google-pagerank-via-an-api-php