I have stored the login information from twitter users (e.g. access-
tokens) in my database.
I now want to get the retweet-count of all these users in a single
request.
Otherwise I have to send 1000 requests if I have 1000 users in my
database (which would lead to blacklisting I guess…).
Is there a comon way to get information from multiple users without
sending requests for each user?
BTW: I’m using Google App Engine and twitter4j
Thanks so far
The API method you are looking for is GET users/lookup. It will allow you to get up to 100 user objects in a single request.
To get a count of the number of times a user has had a status of theirs retweeted your bets bet is to use GET statuses/user_timeline. You can include a
countof200parameter that will return up to 200 statues in a single method. Each status object contains aretweet_countvalue that is generally pretty accurate. You will have to add all of those numbers together.