Extract counter number

eldiabel Jul 13, 2012 11:49AM EDT

Hey there,
I would like to use number of shares on my web in different way. Is there any call function that returns the number of shares ? Or is there any posible way to extract it using javascript ?
Thank you.

Up 1 Rated Down
Sol (AddThis Happiness Specialist) Jul 13, 2012 02:43PM EDT
Yes, you can use our Analytics API to get the number of shares for your site broken down by various dimensions. However, I would not recommend using Javascript to get the data since the API uses your email/password and you shouldn't put that in plain text where someone could steal it. The calls to the Analytics API should be made server-side. Here is the full documentation on the API:

http://support.addthis.com/customer/portal/articles/381264-addthis-analytics-api

If you have any other questions, please let me know.
Up 0 Rated Down
eldiabel Jul 16, 2012 10:24AM EDT
I was playing with the api for a while, but still cannot achieve what I want. Could I contact you personally to email or IM service and talk about it ? Thank you Sol.
Up 1 Rated Down
Paul (AddThis Happiness Specialist) Jul 17, 2012 04:28PM EDT
To pull the share count for a specific URL you can call this URL:

http://api-public.addthis.com/url/shares.json?url=http%3A%2F%2Flocalhost%2F~paul%2Fscratchpad.html

Replace http%3A%2F%2Flocalhost%2F~paul%2Fscratchpad.html with the encoded URL you'd like the count for. This will return the number of counts as a JSON variable

This question is closed to new answers.

Still need help?


General Topics

 

Developers