Google+ / Likes / Shares / Tweets/ Pins

To get the counts on the different Social Sharing functions I found the following url’s to get these:

  • Twitter:
    http://urls.api.twitter.com/1/urls/count.json?url=
  • Facebook:
    https://api.facebook.com/method/fql.query?format=JSON&query=SELECT%20total_count%2C%20url%2C%20share_count%2C%20like_count%2C%20comment_count%2C%20click_count%20FROM%20link_stat%20WHERE%20url%3D%22'.urlencode($url).'%22
  • LinkedIn:
    http://www.linkedin.com/countserv/count/share?url=
  • Google+:
    https://clients6.google.com/rpc
  • Pinterest pins:
    http://api.pinterest.com/v1/urls/count.json?callback=receiveCount&url=

A php script to get the different counts can be found at http://www.derkbraakman.com/opengraph.php?url=http%3A%2F%2Fwww.derkbraakman.com%2F. To get the source, have a look at: http://www.derkbraakman.com/opengraph.txt.

This entry was posted in General by admin. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.