How to get 'ONLY the tweet count' from the

2019-03-16 06:33发布

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

标签: twitter count
1条回答
淡お忘
2楼-- · 2019-03-16 07:35

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
查看更多
登录 后发表回答