Skip to content

Twitter Stats

Connects to the Twitter API and displays statistics about the number of tweets and followers for a set of usernames.

To make this work, you'll need a couple of things:

  1. Twitter developer account

and one of the following:

a) Twitter bearer token
b) Consumer API keys

You must have either a bearer token or consumer key + consumer secret provided. To get the consumer API keys, you must first create a Twitter application. Then, go to the "Keys and tokens" page and copy the API key and API secret key under the Consumer API keys section.

Once you have your developer account, a relatively painless way to get a bearer token is to use TBT.


  consumerKey: "32xxxxxxxxxxxxxxxxxxxxxxxxxxxxa9"
  consumerSecret: "12xxxxxxxxxxxxxxxxxxxxxxxxxxxxab"
  enabled: true
    top: 0
    left: 1
    height: 1
    width: 1
  refreshInterval: 20000
  - "wtfutil"
  - "dril"


Name Value
Optional Your Twitter single-application Bearer Token. This must be supplied if consumerKey and consumerSecret are not.
Optional Your Twitter Consumer API secret. This must be supplied along with consumerSecret if bearerToken isn't supplied.
Optional Your Twitter Consumer API key. This must be supplied along with consumerKey if bearerToken isn't supplied.
The screen names of the Twitter users who's tweets you want to follow.

Source Code