GET statuses/retweeters/ids only Returns 100 ids

May 11, 2015 at 11:28 PM
it seems to me GET statuses/retweeters/ids can only returns 100 ids is that correct ? if not can you show me an example on how to retrieve more then that for a single tweet that has 450 retweet count ?
Coordinator
May 12, 2015 at 12:25 AM
Hi,

Yes the query is a cursor query. A cursor query can be called multiple times to enumerate all the results.

https://dev.twitter.com/rest/reference/get/statuses/retweeters/ids
var query = string.Format("https://api.twitter.com/1.1/statuses/retweeters/ids.json?id={0}", tweetId);
var result = TwitterAccessor.ExecuteCursorGETQuery<long, IIdsCursorQueryResultDTO>(query);
This code should get you all the ids from the cursor query.

Cheers,
Linvi
Marked as answer by linvi on 5/12/2015 at 2:23 AM
May 12, 2015 at 12:28 AM
yes but i heard that the cursor can only return 100 ids ,
is the example you provide can return all the 450 ids ?
Coordinator
May 12, 2015 at 12:44 AM
Hi,

A single request will return 100 tweets. Calling ExecuteCursorGETQuery will automatically execute 5 requests to get all the retweeter ids.

Linvi