since_id not fetching old tweets?

kunal_modi
@kunal_modi Kunal Modi

For some reason, adding since_id=1 on a user_timeline requests gets me less tweets than not including it.

https://api.twitter.com/1/statuses/user_timeline.json?user=kunal_modi&count=200 => 180 tweets
https://api.twitter.com/1/statuses/user_timeline.json?user=kunal_modi&count=200&since_id=1 => 167

Why is this not consistent?

31 weeks 4 days ago

Replies

episod
@episod Taylor Singletary

Make sure that you're including include_rts=true in the request when making a comparison -- the count is an "up to" value, and retweets might be missing if you're not explicitly asking for them.

Also, since_id takes a status ID value as the since_id -- there is no tweet with the ID of "1" so it's technically an invalid request. When using since_id, it's best to use actual tweet IDs.

31 weeks 10 hours ago