Hi Rachel,

Twitter's count parameter is more of an "up to" parameter -- it will give
you up to the number of results you request.

You can increase the amount of results you get returned on most timelines by
requesting the inclusion of retweets with the include_rts=true parameter.
Retweets are naturally part of the more primitive timeline that the API is
obtaining its data from and are filtered out when include_rts=true is not
included.

Perfect pagination is a difficult goal to succeed at when working with the
Twitter API -- it's one reason you'll rarely see strict pagination with
consistent result counts in most Twitter-based apps displaying timelines.

@episod <http://twitter.com/episod> - Taylor Singletary


On Mon, Apr 25, 2011 at 10:59 PM, Rachel xu <rachelxut...@gmail.com> wrote:

> UserID: 46259776
> ID : alexkim99
> PW : asdf1234
>
> HTTP URL: http://api.twitter.com/1/statuses/home_timeline.json with
> parameters: {
>    "count": "10",
>    "page": "1",
>    "max_id": "62669615167324159"
> }
> Twitter only returns 9 items.
> "sTweetId": "62668936843505664",
> "sTweetId": "62668861719318528",
> "sTweetId": "62667918227415040",
> "sTweetId": "62667730612002816",
> "sTweetId": "62667407667367936",
> "sTweetId": "62666196511756288",
> "sTweetId": "62665154105577472",
> "sTweetId": "62663782698205184",
> "sTweetId": "62663208573480960",
>
>
> But with the following parameters, Twitter could return 10 items,
> which means for the top search, there are enough items could return
> but not.
>
>
> HTTP URL: http://api.twitter.com/1/statuses/home_timeline.json with
> parameters: {
>    "count": "10",
>    "page": "1",
>    "max_id": "62663208573480959"
> }
> Twitter returns 10 items.
> "sTweetId": "62662914896707584",
> "sTweetId": "62662830566014977",
> "sTweetId": "62662674550501377",
> "sTweetId": "62661715774550016",
> "sTweetId": "62660583631224832",
> "sTweetId": "62659577342197761",
> "sTweetId": "62659340359831552",
> "sTweetId": "62658402811252736",
> "sTweetId": "62658240449740800",
> "sTweetId": "62657201495474176",
>
> --
> 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
>

-- 
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

Reply via email to