I’ve been looking for a quick and simple way to check a websites Google PageRank and Alexa Rank in a raw format so that it can be integrated in a web application or even stored in the database, but all I came across was a bunch of lame websites which are either full of ads or too slow for a bulk query (and scraping).
Finally, I figured that the most effective solution for this issue is a PHP script for Google PageRank, and direct XML for Alexa Rank (the POPULARITY TEXT value).