SharedCount

SharedCount

  • Category: Social


Getting started with SharedCount API

SharedCount is a social media analytics tool that provides information on how many times a URL has been shared on social media platforms like Facebook, Twitter, Pinterest, LinkedIn, and others. The SharedCount API allows developers to retrieve this kind of information programmatically.

In this blog post, we will walk you through all the steps required to get started with the SharedCount API. We will cover everything from registration to sending requests and parsing responses. We will also provide some JavaScript code snippets, which should give you a good starting point.

So, let's get started!

Step 1: Register for an API key

Before you can start using the SharedCount API, you will need to register for an API key. You can do this by visiting the following URL:

https://www.sharedcount.com/register

Once you have registered, you will receive an email with a link to confirm your account. Click on the link to confirm your account, and then log in to your account.

Once you have logged in, you can access your API key by clicking on the "API" link in the main menu. Your API key should be displayed on the page.

Step 2: Understanding the API endpoints

The SharedCount API provides four endpoints:

  • /v1.0/counts

    This endpoint retrieves the share count data for a given URL.

  • /v1.0/multiple

    This endpoint retrieves the share count data for multiple URLs.

  • /v1.0/bulk

    This endpoint retrieves the share count data for up to 1000 URLs at once.

  • /v1.0/domain

    This endpoint retrieves the share count data for a given domain.

Step 3: Sending requests to the API

To send a request to the SharedCount API, you will need to construct a URL with the appropriate endpoint and parameters. Here is an example URL to retrieve share count data for a single URL:

https://api.sharedcount.com/v1.0/counts?url=https://www.example.com&apikey=YOUR_API_KEY

To retrieve share count data for multiple URLs, you would use the following URL:

https://api.sharedcount.com/v1.0/multiple?urls=https://www.example.com,https://www.anotherexample.com&apikey=YOUR_API_KEY

The parameters are self-explanatory. url parameter is used to specify the URL for which you want the share count data, while urls parameter is used to specify multiple URLs separated by comma.

Step 4: Parsing the API response

The response from the SharedCount API will be in JSON format. Here is an example response for the first URL in the previous request:

{
 "StumbleUpon": 0,
 "Reddit": 3081,
 "GooglePlusOne": 0,
 "Twitter": 6,
 "Pinterest": 0,
 "LinkedIn": 0,
 "Facebook": {
   "commentsbox_count": 0,
   "click_count": 0,
   "total_count": 30,
   "comment_count": 7,
   "like_count": 23,
   "share_count": 0
 },
 "Delicious": 0
}

You can easily parse the JSON response in JavaScript using JSON.parse() function. Here is an example code snippet to parse the response:

let responseJson = JSON.parse(response);
console.log(responseJson.Facebook.total_count);

This code will print the total count of Facebook shares.

Conclusion

In this blog post, we have covered all the basic steps required to get started with the SharedCount API. We have explained how to register for an API key, how to construct API requests, and how to parse the API response. We hope this blog post has given you a good starting point for integrating the SharedCount API into your projects.

Visit to SharedCount website

Similar APIs of Social

TravelBriefing API

TravelBriefing API

Social

Travelbriefing.org, is a free database service for travellers around the world. Access to country-specific information about travel regulations, prevailing environmental conditions, health & vaccines, weather, visa requirements, currency, electric sockets, and language. Everyone can access the set of information that is considered a prerequisite to having a hassle-free journey. The information that Travelbriefing.org provides includes: health & vaccines, weather, visa requirements, currency, electric sockets and language. This API enables developers and researchers to integrate (parts of) database in their own projects.

vaccineweathervisa

Instagram Feed API

Instagram Feed API

Social

A simple & easy way to access your instagram feed with REST API without code. If you are looking to add your Instagram feed into your website then this is so easy. If you don't want to do backend to access your Instagram data.

facebookinstagramsocial

Open Collective

Open Collective

Social

Platform where communities can collect and disburse money transparently to sustain themselves and develop their activities. Community is about trust and sharing. Open Collective lets you manage your finances so everyone can see where money comes from and where it goes.

socialtransparentmoney

Trash Nothing

Trash Nothing

Social

A freecycling community with thousands of free items posted every day. Provides a REST API which allows developers to build apps on top of the trash nothing platform (with thousands of new posts every day and millions of users from around the world).

trashnothingdeveloper

MySocialApp

MySocialApp

Social

Seamless Social Networking features, API, SDK to any app. Increase your user engagement by 100% with your own social news feed Foster engagement and boost loyalty by adding turnkey social news feed into your app.

boostengagementorganic

Twitter

Twitter

Social

Make Twitter APIs endpoint as search, user tweets etc. in few clicks. There are lot's of use cases of Twitter API. Add your home_timeline tweets into your website and Use twitter API to explore content related with your requirements.

twitterapinocode

Disqus

Disqus

Social

Communicate with Disqus data. The internet's favorite comment plug-in makes it easy for publishers to bring their content to life, fuel colorful discussions, efficiently moderate comments, and build engaged communities. Convert casual readers into regular contributors. Disqus helps publishers capture readers and keep them coming back for more with robust sign-in options, cross-site notifications and more. Audience Analytics provide actionable audience insights, helping publishers to understand their audience, monitor engagement, and optimize content strategy. Turn engagement into revenue with new inventory through Disqus and highly configurable ad serving from top demand partners on your site.

monetizeengagementaudience

Buffer

Buffer

Social

Access to pending and sent updates in Buffer. Tell your brand’s story and grow your audience with a publishing, analytics, and engagement platform you can trust. Simpler social media tools for authentic engagement. Mix & match our tools, and build a plan that fits your workflow. Buffer has made sharing our story and building our brand on social media so much easier.

Buffersocialstory

Twitch

Twitch

Social

Game Streaming API. Interactive experiences that work as a stream overlay or as a panel. As simple as writing a web app. Create interactive experiences within Twitch chat, which can be used to take requests, moderate content and more. Use Twitch data and Identity tools to enhance your game or connect with your app.

socialextensionchatbots

Cisco Spark

Cisco Spark

Social

Team Collaboration Software. Build the Future of Business Collaboration. One powerful platform. One revolutionary team experience. So many opportunities for developers like you to get involved. How will you leave your mark on Webex?

botsintegrationswidgets