Display display google pagerank, alexa ranking etc

Hi

If anyone knows some opensource api or tutorials…

Look on the right- it says “Public stats” how do you display that information for a domain - how do buysellads do that domain api?