Use the Social Share Count API to get access to total sharing activity for a URL. Use it to display share counts on your social buttons or anywhere else in your application.

 

Overview

ShareThis captures share related activity for URLs across its vast network of over 4.0 million sites through the ShareThis buttons. 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 the popularity of a URL based on it’s social sharing metrics, displaying counters of share activity and social data processing/mining applications.

Setup

To enable Social Counts on your website, you need to install the ShareThis script which includes the share button span tags. If you want to implement your own buttons using the Web Share API, you can set the span tags to “display:none” in the css. Not adding the script and the tags will cause an error in computing your social counts.

Get URL Information

Endpoint: http://rest.sharethis.com/v1/count/urlinfo

The share count API takes a single parameter: url.

Example Usage

http://rest.sharethis.com/v1/count/urlinfo?url=http://www.sharethis.com

This will return all shares for the sharethis.com URL.

You may also be interested in

WEB SHARE API

Sharing is Caring. Get access to web services that provide comprehensive sharing capabilities to 120 social destinations. We do the heavy lifting so you don’t have to.

 

Get Started