Problems with home_timeline and since_id

32 views
Skip to first unread message

Fernando Olivares

unread,
Mar 4, 2010, 2:29:05 PM3/4/10
to Twitter Development Talk
As mentioned in the topic, I'm having issues with home_timeline
whenever I add the since_id parameter. Whenever I do a request with
since_id, I only get 20 tweets back. This does not happen when I set
the count parameter (i.e. I can ask for 25 tweets and get 25 tweets
back, but if I ask tweets since id 12345 I only get the latest 20
tweets).

This is my complete URL:
Not working -> https://twitter.com/statuses/home_timeline.json?since_id=9959648124

Working -> https://twitter.com/statuses/home_timeline.json?count=50

Any idea what I'm doing wrong?

Thomas Woolway

unread,
Mar 4, 2010, 4:33:56 PM3/4/10
to twitter-deve...@googlegroups.com
Hi,


The since_id is a limiting parameter - the API will give you statuses going back until either you hit the since_id or the count parameter. Otherwise you could theoretically set the since_id to 1 and get all 10 billions tweets...

Hope this helps,

Tom

Fernando Olivares

unread,
Mar 4, 2010, 4:47:14 PM3/4/10
to Twitter Development Talk
That seems to have fixed it.

Thanks a lot! I was going crazy.

On Mar 4, 3:33 pm, Thomas Woolway <tswool...@gmail.com> wrote:
> Hi,
>
> Tryhttps://twitter.com/statuses/home_timeline.json?since_id=9959648124
> &count=50
>
> The since_id is a limiting parameter - the API will give you statuses going
> back until either you hit the since_id or the count parameter. Otherwise you
> could theoretically set the since_id to 1 and get all 10 billions tweets...
>
> Hope this helps,
>
> Tom
>

Reply all
Reply to author
Forward
0 new messages