Grab shares, likes, tweets and more
API Documentation
API Information
There is a courtesy rate limit of 1,000 queries per day for each user. If you will reach that limit, you will have to wait until next day.Values are cached for 5 hours at a time. So, values may be up to 5 hours old for repeated queries.
API URL and Parameters
You can receive the data by requesting URL:
http://out.system.zenithperformance.pl/social-links-analytics/api.php
Parameters:
- url: The URL of the page, including http, and www., if applicable. At this time, we do not provide canonicalization services. URL Encode to minimize errors.
-
response: The type of response that you would like to receive. For example: XML, JSON, Array(serialized).
If you do not specify this parameter, you will receive a response as JSON.
API Example
Response as JSON
<?php
$url = "http://google.com";
$response = file_get_contents("http://out.system.zenithperformance.pl/social-links-analytics/api.php?url=".urlencode($url));
$json = json_decode($response, true);
echo $url. " has ".$json["twitter"]." tweets, ".$json["facebook"]["like_count"]." likes, and ".$json["gplus"]. " +1's";
?>
Response as XML
<?php
$url = "http://google.com";
$response = file_get_contents("http://out.system.zenithperformance.pl/social-links-analytics/api.php?url=".urlencode($url)."&response=xml");
$xml = simplexml_load_string($response);
echo $url. " has ".$xml->twitter." tweets, ".$xml->facebook->like_count." likes, and ".$xml->gplus." +1's";
?>