Hacker News new | past | comments | ask | show | jobs | submit login

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

LinkedIn: http://www.linkedin.com/cws/share-count?url=http://news.ycom...

These APIs are marked private (as opposed to Facebook's) so use at your own risk.




I packaged a few of the private ones with this weekend project: http://sharedcount.com Unfortunately, only Facebook does URL normalization for you, so dumb things like trailing slashes have a big effect on the count.


> Unfortunately, only Facebook does URL normalization for you, so dumb things like trailing slashes have a big effect on the count.

Is that true?

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

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

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


I stand corrected. Twitter used to suck at URL normalization, but it looks like they must have fixed it. But, Delicious and Digg both are a pain.


Is there an API for complete URL normalization, including unshortening URLs?

Facebook and Twitter, do basic normalization, but do not unshorten shortened links.

edit: This has already been discussed on HN: http://news.ycombinator.com/item?id=577457

edit 2: graphs.facebook.com will aggressively and unfortunately normalize any YouTube link to youtube.com. See, for example, http://graph.facebook.com/http://www.youtube.com/watch?v=ZB8... This give the number of shares for youtube.com, not this individual video. I am not sure how to get facebook share stats for a particular YouTube video.


Seeing the comment counts makes me wonder what the comments were. Is there any way to see those?


Very nice, thanks for sharing. Bit of constructive feedback, the fact that the text box deletes itself as soon as you click in it is hella annoying,


Noted, and fixed. I was using HTML5 placeholder. I'll just put it in the value instead.


Perhaps you'd like to also display the Google Page Rank, or something to that effect, like the shares of the domain.



And with this you can actually check multiple sites in one call:

https://www.googleapis.com/buzz/v1/activities/count?alt=json...


The Twitter information is also available via Topsy's public Otter API. See trackback_total:

http://otter.topsy.com/urlinfo.json?url=http://news.ycombina...

http://otter.topsy.com


Thanks for sharing these - tremendously helpful!


Qaiku (public API, needs authentication): http://www.qaiku.com/api/statuses/replies/byurl.json?externa...


thanks




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: