I first make a call to http://twitter.com/users/show/username.xml to get the number of tweets. I then set the count to something like 500, and determine the number of pages. With these, I call http://twitter.com/statuses/user_timeline/username.xml?page=##&count=## (Note: The API says you can have a count up to 3200, but any time I try that, I get an error.)
So I believe I'm paging through the statuses/user_timeline corrects. I have the very first and lastest tweets I've made, but somehow there are 6 missing in between. Also, is there a way to call http://twitter.com/statuses/user_timeline/username.xml with authentication? I have my twitter account whitelisted with 20k api calls per hour, but my machines are on DHCP so I can't have an IP whitelisted. I got rate limited earlier with the aforementioned calls, so I suspect they aren't being authed. I appreciate the help! On Mar 10, 9:29 am, Doug Williams <[email protected]> wrote: > Kyle, > Can you give an example of the calls you are using to get user tweets? > It sounds like you need to page through the statuses/user_timeline > method [1]. Where are you having problems? > > [1] -http://apiwiki.twitter.com/REST+API+Documentation#usertimeline > > Doug Williams > Twitter API Supporthttp://twitter.com/dougw > > On Tue, Mar 10, 2009 at 7:20 AM, Kyle Tolle <[email protected]> wrote: > > > I've had trouble getting all the tweets for users while using an app > > to pull down what should be the entire list of tweets for that user. > > Is this the sort of restriction you mention? > > I'm not even really sure how to go about seeing which ones are missing > > to see if there is a pattern. > > I'd really like to make an archive/statistical utility, but it will > > not do well at either if it can't get all the tweets! > > > I see these sorts of threads have been around for years... just > > wondering how much progress has been made on it. > > > On Mar 9, 6:07 pm, Alex Payne <[email protected]> wrote: > >> We retain any and all tweets that aren't deleted by users. We have all > >> the tweets ever :) > > >> We have some artificial limits in place restricting how far back in > >> time/pages you retrieve tweets. As our data stores increase in > >> reliability for large working sets, we'll be able to lift these > >> restrictions and provide a reasonable quality of service to API > >> clients. > > >> On Mon, Mar 9, 2009 at 13:07, shapper <[email protected]> wrote: > > >> > Hello, > > >> > When are tweets archived? > >> > It depends of how long they were created or twitter keeps always N > >> > tweets visible? > > >> > Can I access older tweets? And can followers access my older tweets? > > >> > Thanks, > >> > Miguel > > >> -- > >> Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x
