The best way to accomplish this, and the way that is most likely to stand the test of time, is to fetch the RSS feed of a user timeline like any other API method.
Instead of the URL format you're using now, I would recommend: http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=xxxxxxxx&count=5 Taylor On Fri, Sep 10, 2010 at 6:40 AM, jaspritsgill <jaspritsg...@gmail.com>wrote: > Okay, so I came across a few posts which did talk about this but I > didnt find my answers in those . > > I am using RSS query in my App for getting the tweets. It seems > twitter has the number of results to an RSS query fixed to 20. > > Is there a way I can specify custom number of results in the query? I > am looking for a lower value like 5 or 10 feeds. I tried the > max_results parameter, but it doesnt work. Here is what I tried..: > > http://twitter.com/statuses/user_timeline/xxxxxxxxx.rss (where > xxxxxxxxxx is the ID of the user I want to get the feeds of )... This > one gives me 20 results. > > For specifying max results, I tried: > > http://twitter.com/statuses/user_timeline/xxxxxxxxx.rss?max_results=5 > -- This gave me 20 results again. > > > > http://twitter.com/statuses/user_timeline/xxxxxxxxxx.rss/max_results=5 > -- This gave me 0 results.. which means the query had errors > > and > > http://twitter.com/statuses/user_timeline/xxxxxxxxxxx.rss&max_results=5 > -- This gave me 0 again. > > Am doing something wrong over here? Or there is some other parameter > for this? > > Also, can I specify the range of the tweets that I want? Maybe on the > basis of index or timestamp? > > Thanks in advance for helping me out on this. > > Regards, > Jasprit > > -- > Twitter developer documentation and resources: http://dev.twitter.com/doc > API updates via Twitter: http://twitter.com/twitterapi > Issues/Enhancements Tracker: > http://code.google.com/p/twitter-api/issues/list > Change your membership to this group: > http://groups.google.com/group/twitter-development-talk?hl=en > -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en