There are two more features we’re proud to announce today: an API and a streaming widget.
WTHashtag API
By using our API you’ll be able to embed usage charts, compare the usage for multiple hashtags, or get hashtag definitions. All the functions we support, as well as parameters and use examples, are listed at api.wthashtag.com. We plan on building this out in the future, so stay tuned developers. If you have any suggestions for methods you would use, leave a comment or use our feedback forum. We do plan on adding write access to provide short definitions, just not until we figure out exactly how to handle authentication properly.
Streaming Widget
By adding a few lines of HTML to your page’s code you can embed a real-time streaming widget. Here’s how it works:
<script>
var wth = {
hashtag: 'iranelection',
width: 600,
refreshRate: 5000, // in milliseconds
smallHeight: 450,
largeHeight: 900,
linkto: "wth" // also could be "twittersearch"
};
</script>
<script> type="text/javascript" src="http://api.wthashtag.com/js/stream.js" /></script>
The only required attribute for the wth{} object is the hashtag – the rest are just preferences. What you see above results in the following widget:
If you click the hashtag you can actually switch the hashtag. The widget will automatically updated itself on the next refresh. Feel free to add your own CSS to style elements in the widget, but please leave the “powered by” logo at the bottom.

Recent Comments