Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9116341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:38:58+00:00 2026-06-17T04:38:58+00:00

I am using the twitter4j library to collect some data in twitter. There is

  • 0

I am using the twitter4j library to collect some data in twitter. There is an interface called Status which can be used to get various information about a tweet (such as id, location, time, whether it was a retweet…). I am currently interested in retrieving the id of a user that is being retweeted in a tweet. For example, suppose John retweets samantha and suppose I have John’s tweet; let’s call John’s tweet t

I would like to do something in code like:

Long retweetedUserID = t.getRetweetedUserID();

I find the javadoc very unclear and cannot properly discern the meaning of each function.

  1. Does anybody know how to get the user id of the person that is being retweeted?

I posted a similar question here about the meaning of a particular method in the Status interface that I believe is related to this problem.

All help is greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:38:59+00:00Added an answer on June 17, 2026 at 4:38 am

    Use the method getRetweetedStatus(). You can store this into a Status variable and then user the getUser() method. Altogether this is:

    for(Status t : results.getTweets())
    {
        retweetedStatus = t.getRetweetedStatus();
        User curRTUser = retweetedStatus.getUser();
        curRTUserID = curRTUser.getId();
        //do whatever you want
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the python-twitter library and while I can get the code to retrieve
I'm using the twitter boot-strap library within groovy grails and can currently get both
I am using twitter4j library to access twitter api. I can sucessfully retrieve information
I'm calling the twitter4j library using Clojure like so: (def twitter (. (TwitterFactory.) getInstance))
I am trying to integrate twitter api using library twitter4j-core-2.1.1-SNAPSHOT.jar. But i am getting
I am using abraham williams library to update twitter status using oauth. But I
I'm using the twitter-async library to do some oauth calls to twitter but ultimately,
I'm trying to login on twitter from my android app using Twitter4j library but
Twitter doesn't allow tweet messages longer than 140 characters. I'm using the twitter4j library
So I'm parsing data from twitter api in rails using the twitter library, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.