Python Tweepy – Getting the ID of a status Last Updated : 18 Jun, 2020 Comments Improve Suggest changes Like Article Like Report In this article we will see how we can get the ID of a status. Each status or tweet has a unique ID. The id attribute of the Status object provides us with the ID of the status/tweet. Identifying the ID in the GUI : In the above mentioned status, the ID can be found in the URL, the ID here is : 1271031982189879297 In order to get the ID of a status, we have to do the following : Identify the status ID of the status from the GUI. Get the Status object of the status using the get_status() method with the status ID. From this object, fetch the id attribute present in it. Example 1 : Consider the following status : We will use the status ID to fetch the status. The status ID of the above mentioned status is 1272771459249844224. Python3 1== # import the module import tweepy # assign the values accordingly consumer_key = "" consumer_secret = "" access_token = "" access_token_secret = "" # authorization of consumer key and consumer secret auth = tweepy.OAuthHandler(consumer_key, consumer_secret) # set access to user's access key and access secret auth.set_access_token(access_token, access_token_secret) # calling the api api = tweepy.API(auth) # the ID of the status id = 1272771459249844224 # fetching the status status = api.get_status(id) # fetching the id attribute id = status.id print("The ID of the status is : " + str(id)) Output : The ID of the status is : 1272771459249844224 Example 2 : Consider the following status : We will use the status ID to fetch the status. The status ID of the above mentioned status is 1272479136133627905. Python3 1== # the ID of the status id = 1272479136133627905 # fetching the status status = api.get_status(id) # fetching the id attribute id = status.id print("The ID of the status is : " + str(id)) Output : The ID of the status is : 1272479136133627905 Comment More infoAdvertise with us Next Article Python Tweepy – Getting the ID of a status Y Yash_R Follow Improve Article Tags : Python Python-Tweepy Practice Tags : python Similar Reads Python Tweepy - Getting the ID of a user In this article we will see how we can get the ID of a user. ID is the unique identification marker of the twitter account. ID is given to the user by Twitter, the user can not select or change their own ID. In order to get the ID we have to do the following : Identify the user screen name of the pr 2 min read Python Tweepy â Getting the text of a tweet In this article we will see how we can get the text of a status/tweet. A tweet can only have a maximum of 280 characters. The text attribute of the Status object provides us with the text of the status. Identifying the text of the status in the GUI : In the above mentioned status, the text of the st 3 min read Python Tweepy â Getting the source of a tweet In this article we will see how we can get the source of a status/tweet. The source of the tweet tells us how the tweet was posted. Some examples of sources are : Twitter for Android Twitter for iPhone Twitter Web App The source attribute of the Status object provides us with the source of the statu 2 min read Python - API.get_status() in Tweepy Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be tweets extracted from the user. The first thing to do is get the consumer key, consumer secret, access key and access secret from 2 min read Python Tweepy - Getting the name of a user In this article we will see how we can get the name of a user. Name is the display name of the twitter account. It is the name that users choose to identify themselves on the network. Many users choose to either use their real name as the basis for their display name. Unlike screen names, the names 2 min read Like