Reputation: 4168
Looking at the Twitter API, I'm struggling to see how I could get my N
th tweet. I know there is a maximum number we can go back (something like 3200 latest tweets or so), but I'd like to access a specific tweet that I know the N
of (i.e. it was my 789th
tweet (note that it really wasn't that specific N)).
Thank you!
Upvotes: 2
Views: 425
Reputation: 1731
You can't. The tweet doesn't contain information on its number in stream.
All you can do is count back: you know your current tweet number (statuses_count
) and just count backwards in statuses/user_timeline
(not too hard with pagination, but they re going to disable it soon).
Upvotes: 1