user_timeline only returns 29 results for user 40733398

facundobatista
@facundobatista Facundo Batista

I'm querying using "https://api.twitter.com/1/statuses/user_timeline.json?user_id=40733398&page=X" where X in the page goes from 1 to 10... but I only get 15 results on page 1, 11 on the second, and 3 on the third page, and 0 in the rest.

29 results in total, but user (me) have a lot more of tweets...

Is there a better way to query this?

Thanks!

5 hours 14 min ago

Replies

episod
@episod Taylor Singletary

When walking a user timeline, remember to include include_rts=true as a parameter, the result count value is calculated with those included. Using the page parameter is deprecated and is part of the difficulty you have in walking the timeline accurately -- it's not really a "paginated" resource -- use a combination of since_id, max_id, and count instead as documented here: Working with Timelines

4 hours 53 min ago