Take the 2-minute tour ×

I've been wanting to create something like this: http://twitter.theinfo.org/

A script which finds replies to a tweet and shows them in a threaded fashion like this:


Any help on where to start or if there's an implementation already out there for me to tinker with?

share|improve this question
Incidentally, I've added a bounty to a similar question about threading tweets here: stackoverflow.com/questions/3552646/… –  Mark Longair Mar 25 '11 at 17:12

4 Answers 4

Going up the thread is easy because replies have in_reply_to_statu_id but finding replies to a status is near impossible. You have have to maintain a search looking for tweets to a specific user and check if they are a reply in which case save them.

share|improve this answer
+1 See this FAQ entry for more info (well, not really more info, but at least confirmation that this is correct). –  Brandon Tilley Mar 21 '11 at 3:08

What I would do if i had to do that, is run a cron that would store the in_reply_to_status_id field, and then query that.

You could theoretically expect that only his followers will reply to him, if you'd like a starting point

share|improve this answer

You can use the Twitter OAuth API in numerous languages however what type of data you can get is limited to the API calls they provide.

What you're probably looking for is something like their retweets call; http://dev.twitter.com/doc/get/statuses/retweets/:id

You may want to take a look at the Twitter API Wiki; http://apiwiki.twitter.com/w/page/22554648/FrontPage

as well as their Tutorials listing;

share|improve this answer

iframe!!!!!!! or json and limit the amount show to one and do multiple for different users.

or just do it manualy by making a javascript that looks for hash tags and time posted on the twitter website

share|improve this answer

Your Answer


