Share Count API
Overview
ShareThis captures share related activity for URL's across it's vast network of 900,000+ sites through the ShareThis button. This data primarily includes user shares, and visits from their friends clicking on shared links within social networks. The API allows a client application to access this data for a specified URL. Examples of usage include - determining popularity of a URL based on it's social sharing metrics, displaying counters of share activity, and data processing/mining applications that need this type of data for input.
Get URL Information through JavaScript
Web sites can use this method to access count data during page load within a browser. This approach allows a site to customize the look & feel of the raw data instead of using ShareThis counters.
JavaScript Function:
stButtons.getCount()
Description: Return share count information within JavaScript and populates the inner HTML of page element passed.
Example:
<script type="text/javascript" src="http://wd.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">
stLight.options({publisher:'your-pub-key'});
//Pass in the url,social service for which you need count
//It will populate the innerHtml of the element passed for the service.
stButtons.getCount("http://example.com","facebook",document.getElementById('fbcount'));
</script>
Note: This method does not support certain buttons - Facebook Like and Google+ due to their implementation restrictions.