Hacker News new | past | comments | ask | show | jobs | submit login

Speaking of twitter API, is there any efficient way of getting just the single latest tweet from all the users someone follows?



Ha!

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.


Thanks!

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.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: