Shortest unused Twitter #hashtag

What is the shortest Twitter #hashtag that has never been used? As an additional constraint, let’s focus on the lexicographically first hashtag composed of ASCII letters only of that kind. Let’s skip dessert and use Python and the Twitter Search API to find out:

import urllib
import json
import itertools
import string
import time

k, max_k = 1, 10
while k < max_k:
    for tag in itertools.product(string.ascii_lowercase, repeat=k):
        tag = ''.join(tag)
        print "Searching for #%s" % tag
        search_url = '' % tag
        while True:
            search_result = json.loads(urllib.urlopen(search_url).read())
            if 'results' in search_result:
            print "Wait a few seconds because of Twitter Search API limit"
        search_result = search_result['results']
        if not search_result:
            print "Unused hashtag: #%s" % tag
            k = max_k
    k += 1

After a few minutes, the result: #agy. What could we use that one for?

One thought on “Shortest unused Twitter #hashtag

  1. I’m from the US. These suggestions may not be universal. ‘Agy’ brings to mind either ‘ageism’ or ‘aggie’ (as in Agricultural schools, In the vein of the former sense, ‘agy’ might be a description of how someone behaves, or a feeling something (like music) gives you, as in ‘Beatles songs have an agy tonality, man’ (i.e. taking you back to a specific time in history). Phonetically, though, it rolls off more like the second one to me, but lexically, ‘agy’ and ‘aggie’ are fairly dissimilar. So it’s a toss-up.

    The HN post about Mathics brought me here, incidentally. I usually poke around a place to get a sense of the person behind such a cool thing. Thanks, now.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>