Devric
Devric

Reputation: 85

How to get 'ONLY the tweet count' from the twitter button

ive been looking at the http://dev.twitter.com/pages/tweet_button#build-your-own-example , they have only show how to customize the thumbnail, but i all i need it just a 'no graphic' plain text, tweet count NUMBER. and integrate it my tweet post, so it counts the tweets for my post.

Im quite noob at this, does anyone know how to achieve this? Thanks

Upvotes: 8

Views: 5485

Answers (1)

abraham
abraham

Reputation: 47833

Twitter does not have a public API to surface the share count for a URL. The button uses a private method that you could use but it is likely to change at anytime and will break your button if it does.

https://cdn.api.twitter.com/1/urls/count.json?url=http://google.com

Upvotes: 15

Related Questions