Welcome Login or Create Account

Tweetcount Widget

Show the number of times your posts have been linked on Twitter and let readers retweet

This widget uses BackType Connect to find all the links your posts receive on Twitter. It shows the number of tweets you have, and lets users retweet your posts quickly and easily

This is the simplest way to display this widget:

<script type="text/javascript" src="http://widgets.backtype.com/tweetcount.js"></script>

However, you can also modify several parameters:

Parameter Default Description
tweetcount_url Current URL The URL to measure tweets for
tweetcount_title Title of current page The title of the page for retweets
tweetcount_src Leading text for retweets
tweetcount_via true If tweets contain '(via @BackType)'
tweetcount_links false If links should be opened in new windows
tweetcount_size "large" Size of button ("large" or "small")
tweetcount_api_key Awe.sm API Key for custom URL shortener
tweetcount_short_url Generated (bt.io) Specify the pre-shortened URL that you would like to use
tweetcount_background Button background color (e.g. 'FFFFFF')
tweetcount_border Button border color (e.g. 'CCCCCC')
tweetcount_text Button text color (e.g. '000000')

For example:

<script type="text/javascript">
    tweetcount_url = 'http://blog.backtype.com/2009/04/backtype-connect-wordpress-plugin/';
    tweetcount_title = 'Tweetcount Widget';
    tweetcount_src = 'RT @BackType:';
    tweetcount_via = false;
    tweetcount_links = true;
    tweetcount_size = 'small';
    tweetcount_background = 'FFFFFF';
    tweetcount_border = 'CCCCCC';
    tweetcount_api_key = '5c3bba3f5d77a46a13453091e36dc1cde4335e9299a1edeeaa3c31d193b33fda';
<script type="text/javascript" src="http://widgets.backtype.com/tweetcount.js"></script>
Sign Up Give your comments a home where they can be discovered, followed and shared

Using WordPress?

Get the BackType Tweetcount widget instead Go »


Want to build your own widgets or use BackType data in your application? See our API »