{"id":24241,"date":"2019-07-03T12:22:46","date_gmt":"2019-07-03T16:22:46","guid":{"rendered":"https:\/\/www.shareaholic.com\/blog\/?p=24241"},"modified":"2020-12-30T16:15:57","modified_gmt":"2020-12-30T21:15:57","slug":"social-share-count-api","status":"publish","type":"post","link":"https:\/\/www.shareaholic.com\/blog\/social-share-count-api\/","title":{"rendered":"Announcing: Social Share Count Proxy API &#8211; Better, Faster &#038; Secure Share Counts"},"content":{"rendered":"<p><em>We&#8217;re extremely excited that our new <strong>Share Count Proxy API service<\/strong> is available today to all Shareaholic Site Profiles on the <a href=\"https:\/\/www.shareaholic.com\/plans\/\">Pro plan and above<\/a> &#8212; <a href=\"https:\/\/support.shareaholic.com\/hc\/en-us\/articles\/360029500132-Share-Count-Proxy-API-Hosted-#enable\" rel=\"noopener noreferrer\" target=\"_blank\">review instructions on to enable the Share Count Proxy API for your Site Profile<\/a>. Takes less than 5 minutes to setup. This service is also available for use programmatically via API.<\/em><\/p>\n<h3>Why You <em>Need<\/em> the Share Count Proxy for Your Website<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.shareaholic.com\/blog\/wp-content\/uploads\/2019\/07\/share-count-proxy-api-small-640x173.png\" alt=\"\" width=\"100%\" class=\"aligncenter size-shareaholic-thumbnail wp-image-24294\" srcset=\"https:\/\/www.shareaholic.com\/blog\/wp-content\/uploads\/2019\/07\/share-count-proxy-api-small-640x173.png 640w, https:\/\/www.shareaholic.com\/blog\/wp-content\/uploads\/2019\/07\/share-count-proxy-api-small-700x189.png 700w, https:\/\/www.shareaholic.com\/blog\/wp-content\/uploads\/2019\/07\/share-count-proxy-api-small-300x81.png 300w, https:\/\/www.shareaholic.com\/blog\/wp-content\/uploads\/2019\/07\/share-count-proxy-api-small-768x207.png 768w, https:\/\/www.shareaholic.com\/blog\/wp-content\/uploads\/2019\/07\/share-count-proxy-api-small.png 800w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>The Share Count Proxy API <strong>functions much like a secure VPN service<\/strong>. Once enabled, all Share Count requests to the various Social Networks are proxied through this service. Doing so, results in:<\/p>\n<ul>\n<li>\n<p><strong>&#x1f512; Better Protection of Visitor Privacy \/ Easier GDPR Compliance<\/strong><\/p>\n<p>The &#8220;original&#8221; share buttons from Facebook, Pinterest and others automatically transmit data of your visitors to the social network sites as soon as they visit your website.  This is also the case if you use custom Share Buttons (such as a plugin) and choose to display Share Counts. Data is shared without the need for visitors to click on a share button and therefore have no choice.<\/p>\n<p>The <strong>Shareaholic&#8217;s Share Count Proxy API<\/strong> fixes this by allowing your site visitors to see how popular your pages are without needless leakage to the social networks (unless they decide to share, of course). Once enabled, all Share Count queries to the Social Networks are proxied through this API securely and visitor privacy is protected (like an anonymous VPN).<\/p>\n<\/li>\n<li>\n<p><strong>&#x1f4c8; Better Facebook Share Counts<\/strong><\/p>\n<p>Have your Facebook Share Counts recently &#8220;reset&#8221;?<\/p>\n<p>This is because Facebook updated their API recently to require authentication to lookup Share Counts. This was not the case earlier. It is not possible to safely make such authenticated requests without a server-side solution, like this proxy. If you use this Proxy API, you&#8217;ll be able to set <a href=\"https:\/\/support.shareaholic.com\/hc\/en-us\/articles\/360028605231\">Facebook App credentials<\/a> and make authenticated calls for better counts. You will also get much higher Facebook API limits.<\/p>\n<p>Plus, since this Proxy API protects user privacy, Firefox and other major browsers do not default block requests to it like they do to client-side requests to Facebook&#8217;s and other such APIs.<\/p>\n<\/li>\n<li>\n<p><strong>&#x1f680; Faster Website Speed<\/strong><\/p>\n<p>This proxy consolidates what would have been multiple client-side HTTP requests (one for each social network) to a single HTTP\/2 compatible request for your visitors. By cutting down on requests,  your website will load faster. Plus, the proxy lives on our optimized servers that are super-specialized for retrieving, caching and serving, so your own servers and database run faster as they have to do less work.<\/p>\n<\/li>\n<li>\n<p><strong>&#x1f4b5; Save Money on Your Web Hosting<\/strong><\/p>\n<p>Retrieving, caching and serving Share Counts can be a server and database intensive activity which can test even the best of web hosts. Because this service lives on Shareaholic servers, you and your host don&#8217;t need to deal or worry about any of this. Save on your hosting bill, let us do the heavy lifting instead. Also, because the service is hosted, it works with any CMS, including Shopify, Wix, and Blogspot.<\/p>\n<\/li>\n<\/ul>\n<p><em>Next step:<\/em><\/p>\n<ul>\n<li><a href=\"https:\/\/support.shareaholic.com\/hc\/en-us\/articles\/360029500132-Share-Count-Proxy-API-Hosted-#enable\" rel=\"noopener noreferrer\" target=\"_blank\">Review instructions on to enable the Share Count Proxy API for your Site Profile<\/a><\/li>\n<li><a href=\"https:\/\/support.shareaholic.com\/hc\/en-us\/articles\/360028605231\" rel=\"noopener noreferrer\" target=\"_blank\">Setup your Facebook App integration<\/a><\/li>\n<\/ul>\n<p>p.s. if you&#8217;re using our <a href=\"https:\/\/wordpress.org\/plugins\/shareaholic\/\" rel=\"noopener noreferrer\" target=\"_blank\">WordPress plugin<\/a>, you have the option to enable a <a href=\"https:\/\/support.shareaholic.com\/hc\/en-us\/articles\/202809466-WordPress-Plugin-Share-Count-Proxy-API-Local-\" rel=\"noopener noreferrer\" target=\"_blank\">self-hosted version of a Share Count Proxy<\/a> that is built into the plugin for free.  However, we highly recommend our premium hosted option as self-hosting Share Counts yourself can be a resource hog on your server. A dedicated service to keep Shareaholic light on site resources is your simplest and fastest option. Our servers do all the heavy lifting such as storage, rate limiting, caching, and more behind the scenes work while keeping your website fast. An added advantage of the premium version are much higher API lookup limits &#8212; which is necessary for larger sites.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;re extremely excited that our new Share Count Proxy API service is available today to all Shareaholic Site Profiles on the Pro plan and above&hellip;&nbsp;<br \/><a class=\"continue-reading\" href=\"https:\/\/www.shareaholic.com\/blog\/social-share-count-api\/\">Continue Reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":24291,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[525],"tags":[793,913,598],"_links":{"self":[{"href":"https:\/\/www.shareaholic.com\/blog\/wp-json\/wp\/v2\/posts\/24241"}],"collection":[{"href":"https:\/\/www.shareaholic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shareaholic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shareaholic.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shareaholic.com\/blog\/wp-json\/wp\/v2\/comments?post=24241"}],"version-history":[{"count":68,"href":"https:\/\/www.shareaholic.com\/blog\/wp-json\/wp\/v2\/posts\/24241\/revisions"}],"predecessor-version":[{"id":24449,"href":"https:\/\/www.shareaholic.com\/blog\/wp-json\/wp\/v2\/posts\/24241\/revisions\/24449"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.shareaholic.com\/blog\/wp-json\/wp\/v2\/media\/24291"}],"wp:attachment":[{"href":"https:\/\/www.shareaholic.com\/blog\/wp-json\/wp\/v2\/media?parent=24241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shareaholic.com\/blog\/wp-json\/wp\/v2\/categories?post=24241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shareaholic.com\/blog\/wp-json\/wp\/v2\/tags?post=24241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}