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
The documentation on the Twitter 1.1 API says:
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.
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“:
The API will also correspondingly return only the single Retweet(er).
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.