skip to Main Content

In twitter I see 102 retweets, but I get only 94 retweeters.
Why? How can I get 100 retweeters?

I use twitter-api-php with next parameters:

$url = 'https://api.twitter.com/1.1/statuses/retweets/tweet_id.json';
$getfield = '?count=100' ;
$requestMethod = 'GET';
$twitter = new TwitterAPIExchange($settings);
$json = $twitter->setGetfield($getfield)
                ->buildOauth($url, $requestMethod)
                ->performRequest();

3

Answers


  1. The documentation on the Twitter 1.1 API says:

    GET statuses/retweeters/ids

    Returns a collection of up to 100 user IDs belonging to users who
    have retweeted the Tweet specified by the id parameter.

    Link to developer.twitter.com

    I take this to mean you only have 94 retweeters in this situation. It CAN return up to 100, if they exist. Also it might not count you retweeting your own post, but that doesn’t make much sense.

    Login or Signup to reply.
  2. Protected Retweets are shown as part of the count you see, but you’re unable to obtain them or their Retweeters through the API (unless that protected account follows you).

    To outline this, I made a test Tweet and Retweeted it from the same account as well as from a protected account. If you click to see who Retweeted, it’ll show the same account, which Retweeted it, and at the bottom, it’ll say “1 user has asked not to be shown in this view. Learn More“:

    Test Tweet

    The API will also correspondingly return only the single Retweet(er).

    Login or Signup to reply.
  3. Without the tweet ID, we can’t tell, but it’s well-documented that the GET statuses/retweeters/ids endpoint only returns up to 100 retweeers, and Twitter has refused to fix that.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search