Given a tweet, how do I find the user's prior tweet?

search
api

#1

A question I often have is, what did the person who tweeted X, tweet just before tweeting X?
This often happens when a user is engaging in a “disconnected tweet storm”

How do I use the API (or can I use the API) to implement a [previous tweet] and [next tweet] buttons?

In general, how do I iterate through a user’s tweets: do I start at the top of the timeline and cursor backwards through time, or can I jump into the middle by first obtaining a tweet via some sort of search?


#2

The max_id and count parameters will be useful to you for navigating a timeline if you know a tweet id: https://dev.twitter.com/rest/public/timelines