Search code examples
searchtwittertwitter4juseridfield-description

How to search twitter users by their description?


I am using twitter4j, I am interested to search a specific users by some words that exists in their description/Bio? is it possible to do that?

for example:

user that have the description: "full time developer...." I want him to be retrieved by searching the word "developer"

searchByDescription("developer");

Is there any method to do it?


Solution

  • If you read the Twitter documentation you'll see that you can call users/search to get this information.

    According to the Twitter4J documentation this is the searchUsers() function.