1

See a sample article on theonion.com

enter image description here

I know how to create icons for these sites without using their standard widget, but how did they get the number of share, bellow each icon ? Is there an API to ask for it ?

5
  • 1
    Yes is the simple answer. Search the individual APIs for further details.
    – joesk
    Jan 28, 2013 at 15:36
  • Why the downvotes ? RTFM is a valid answer now ?
    – Manu
    Jan 28, 2013 at 15:42
  • I can't find any information on how to do this for twitter, for instance.
    – Manu
    Jan 28, 2013 at 16:27
  • Did you even search? Took me a minute to find
    – elssar
    Jan 29, 2013 at 12:00
  • Actually, I need to call count.json, as answered on stackoverflow
    – Manu
    Jan 29, 2013 at 17:56

1 Answer 1

0

Twitter

use the URL :

http://urls.api.twitter.com/1/urls/count.json?url=http://stackoverflow.com

It will return a JSON string :

{"count":8026,"url":"http:\/\/stackoverflow.com\/"}

Facebook

The URL is

http://graph.facebook.com/?id=http://www.google.com

But see stackoverflow.com/questions/5699270

Google +

The URL is

https://clients6.google.com/rpc?key=YOUR_API_KEY

More social sites at https://gist.github.com/2640302

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.