How To Download All Your Twitter Updates

How can you download all your Twitter Tweets?  Your Twitter updates appear in your profile pages, so you always have access to all your tweets. However, once you’ve posted a few dozen updates or more, it’s a hassle to slog through a bunch of different pages in your profile to find the post you want. You can use the Twitter search engine to track down the post, but that’s a bit of a hassle.

Download Tweets

If you want easier access to your tweets, and you want to preserve a local backup copy of your updates, then you need to download your updates to your computer. You can do this right from your Web browser by entering a special address that uses the following general syntax:

Here, replace “account” with your Twitter username, and replace “n” with the number of tweets you want to return. If you want to return all your updates, log in to your account, check your total number of updates (it’s available on both your home page and your profile page), and then plug that number into the above address as the count value.

What you get in return is a page full of data in the XML (extensible markup language) format, as shown in the screenshot below.


Now you save the data by choosing File > Save As, choosing a location and file name in the Save As  dialog box, and then clicking Save.

If you’d prefer to receive your tweets in the slightly more friendly comma-separated values (CSV) file format, check out Tweet, which offers a download feature. It requires you to enter your Twitter username and password, but it’s safe because it doesn’t store your data.

Analyze Tweets

If you have Excel, you can import the XML file into a worksheet for easier viewing, searching,  and so on. Here’s how:

  1. In Excel, click the Data tab.
  2. In the Get External Data group, choose From Other Data Sources >From XML Data Import. The Select Data Source dialog box appears.
  3. Navigate to the XML file location, click the file, and then click Open. Excel tells you it will create a scheme for the file.
  4. Click OK. Excel prompts you for a location to import the data.
  5. Click the cell where you want the data to appear, and then click OK. Excel displays the XML data in a table.
  6. Choose File >Save As, and then use the Save As dialog box to save the data as an Excel workbook. Consider using the Save as type list to choose the Excel 97-2003 file format for maximum compatibility. Screenshot below shows just such a file loaded into the Mac version of Excel.


Update Tweet Downloads

Downloading your tweets is easy, but this method suffers from a glaring problem: as soon as you start  posting tweets again, your backup becomes out of date, so you need to perform regular downloads. However, it doesn’t make sense to download all your tweets each time. You could adjust the count value based on the number of updates you’ve sent since the last download, but Twitter offers an easier way.

If you examine the screenshot above, you see that each tweet is given a unique ID value. You can use the value to download just those tweets you’ve posted since your last download. You do that by using your Web browser to enter a special address that uses the following general syntax:

Again, “account” is your Twitter username, and “ID” is the ID value for the latest tweet in the previous download. For example, in the screenshot above, you can see that the latest tweet in my @AkmalWardak account has the ID value of 3354513509, so I could download every tweet since that post by using the following address:

Guest blogger Akmal Wardak writes on – A blog about social media, software reviews, how-to tutorials and WordPress tips. 


  1. Caeserts says:

    but,how to save all tweets I received?

  2. Paul @ Fiscalgeek says:

    Now I just have to figure it if anyone would really want to read all of my tweets :-).

  3. Frank says:

    Good first step! If you have some coding chops, you can automate the entire thing.

    At the end, you’ll have all your Twitter posts in a database, perfect for performing whatever metrics you’d like.

  4. Lara says:

    I did this and got only 200 tweets but I typed 2240. Because that’s the total of my tweets so far. What should I do? :D

  5. Christy says:

    Very useful your script but I need to download, together with the tweet, the text of “in replay to”, because I need to have the questions and answers. Any way to do this? Thanks

  6. Matthew Wilcoxson says:

    This is basically using the twitter API and it restricts all single request to at most 200 tweets.

    If you need to get earlier ones try using “max_id” with “count”. Just note down the id of the last tweet you obtained then goto a url like:
    (replace “account” with your name and “ID” with the last one obtained)

  7. paula says:

    this is AWESOME!

    Is there any way to download tweets for a particular hashtag?

  8. Wibisono Sastrodiwiryo says:

    how to obtain tweets with specific hashtag?

  9. John says:

    Thanks. Can I save my “following” list on Twitter via XML and how?

  10. Michael Lunsford says:

    Hmmm, it only pulled the last 184 tweets. Any way to get to the other 5k?

  11. Sriram Venkitachalam says:

    This is wonderful for a newbie like me. Thanks so much. Also, thanks to Matthew Wilcoxson for the tip on using max_id. Is there a list I could read about everything I could download with just XML and URL? Thanks!

  12. Juan Burgos says:

    So, how about a specific search or a hashtag?

    Does anybody know how to pull those tweets?

    :) thanks!

  13. Poojan Bedi says:

    Thanks for the great post, it is very useful who wants to integrate the twitter with any application.

    Thanks Again!

  14. Prithwis says:

    Does this recover ALL tweets ? I have about 775 tweets but when the XML file is imported into Excel, I see only 175 rows ? what happens to the others ?

    But thanks for an excellent article anyway

  15. naveen says:

    hi great post.. this is downloading tweets of a user not of a page, if any one have tweets on his page they wont be downloaded.
    How can i do that..

Leave a Reply

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