since_id limit

14 views
Skip to first unread message

Trevor Turk

unread,
Dec 1, 2008, 2:16:14 AM12/1/08
to Twitter Development Talk
I'm just reviewing the API docs, and I'm not clear on something.

http://apiwiki.twitter.com/REST+API+Documentation#replies

If you pass in a since_id, then do you get ALL the results since that
ID, or just the latest 20?

I'm planning to ping Twitter every minute and collect the @replies
sent to a particular user. I'm sure I won't get more than 20 @replies
per minute, but I would like to know if that's something I should note
for the future.

Thanks,
- Trevor

Brian Gilham

unread,
Dec 1, 2008, 8:38:19 AM12/1/08
to twitter-deve...@googlegroups.com
If there are more than 20 results, you can use paging to grab them all.
-----Original Message-----
From: Trevor Turk <trevo...@gmail.com>

Date: Sun, 30 Nov 2008 23:16:14
To: Twitter Development Talk<twitter-deve...@googlegroups.com>
Subject: since_id limit

Fahim

unread,
Dec 3, 2008, 3:12:48 AM12/3/08
to Twitter Development Talk
But didn't the since_id parameter return all tweets since that ID
originally? I have a Twitter client that I've coded which was working
fine with since_id till yesterday (December 1st). But since yesterday
it only returns the last 20 tweets. Was a functionality/API change
made?

On Dec 1, 6:38 pm, "Brian Gilham" <bgil...@gmail.com> wrote:
> If there are more than 20 results, you can use paging to grab them all.

Kind regards,

Fahim

Swap

unread,
Dec 3, 2008, 12:39:33 PM12/3/08
to Twitter Development Talk
There was a small change. They fixed a bug with since_id where it
would set it as 0 if the status had been deleted (#77). It looks like
they now require a count parameter as well.

--
Swap

Trevor Turk

unread,
Dec 4, 2008, 12:40:36 AM12/4/08
to Twitter Development Talk
On Dec 3, 11:39 am, Swap <RH.Swar...@gmail.com> wrote:
> There was a small change. They fixed a bug with since_id where it
> would set it as 0 if the status had been deleted (#77). It looks like
> they now require a count parameter as well.

So what's a good workaround? Request the next page if you get 20
results? Too bad, but still doable :)

- Trevor

Swap

unread,
Dec 4, 2008, 10:00:57 PM12/4/08
to Twitter Development Talk
No, just use the count (200) parameter if you want all tweets since
"that" id.

--
Swap
Reply all
Reply to author
Forward
0 new messages