Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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 ?

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

1 Answer 1

up vote 0 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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