SiteAmount API v.1
The current version of the SiteAmount API allows you to return the following information: PageRank and Alexa Rank. The full version 1.0 of the API will include much more for users to play with.
The API returns data in serialized PHP format. Simply use the SiteAmount API url to request data: http://www.siteamount.com/api.php?url=http://www.google.com
You can click the link above to see and example of the data returned in a serialized array. Below are code examples that will allow you to easily use the SiteAmount API.
The API returns data in serialized PHP format. Simply use the SiteAmount API url to request data: http://www.siteamount.com/api.php?url=http://www.google.com
You can click the link above to see and example of the data returned in a serialized array. Below are code examples that will allow you to easily use the SiteAmount API.
Code Sample: Making A Request To The SiteAmount API
<?php $request = "http://www.siteamount.com/api.php?url=http://www.google.com"; $response = file_get_contents($request); if ($response === false) { die('Request failed'); } $phpobj = unserialize($response); echo '<pre>'; print_r($phpobj); echo '</pre>'; ?>
Requirements
Currently the only required variable is the URL of the website in which you would like results for.
