user_timeline.json returning far fewer tweets than requested


#1

Since about a week I noticed my website is only able to grab a few tweets from my timeline, even though I request more.

When sending “https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=Clavus&include_rts=1&exclude_replies=1&count=12”, it only returns 3 tweets right now. It returned only 2 before I made my latest tweet (so for some reason it doesn’t grab this tweet and anything older than that). Results are cached for some time so I shouldn’t be hitting the rate limit or anything. What gives?


#2

Filtering like exclude_replies=1 happens after retrieving 12 tweets. So when you ask for 12 tweets and exclude replies, you get 3 tweets because the rest are replies.

I found requesting user_timeline with max_id, since_id and and then doing my own filtering a bit easier to work with https://dev.twitter.com/rest/public/timelines