Unique Tweet ID

twitter4j
api

#1

HI,
Is that every tweets has Unique Id like users?
If so, where should I find?

Thank you


#2

Yes, all tweet IDs are unique 64bit integers, it’s the last part of a tweet permalink, or the id field in a status object. id_str is also included because some languages like javascript can’t handle large integers.

I see a twitter4j tag, so in Java: the twitter4j Status object has a getId() method that returns a long.


#3

Thank you, so retweet also have unique ID?
And this ID is different from original ID or same?


#4

Exactly - Retweets have their own id, and contain a retweeted_status object - which has the original tweet. (status.getRetweetedStatus() in twitter4j will return that if status.isRetweet() is True)