3 ms·
Speaking of twitter API, is there any efficient way of getting just the single latest tweet from all the users someone follows?
by shurcooL 14y ago
Speaking of twitter API, is there any efficient way of getting just the single latest tweet from all the users someone follows?
- sidawson 14y agoHa! No. Off hand, it'd require batching the users into groups of 100 and using an API call (/users/lookup) for each group. That gives you a user object each (which you don't care about), but also the latest tweet. The limit is 180/15 mins, ie a max of 18k in any 15 minute window.
- shurcooL 14y agoThanks! That beats my first naive attempt, which was an API call (/statuses/user_timeline/<id>.json?count=1) per user. Hmm, I just noticed there was also (now deprecated) GET statuses/friends which did what I want. It is deprecated in favour of your suggestion.