get a list of users

Mar 7, 2014 at 11:40 AM

How I can get a list of users whose names contain a specific word in the user name, or in the description or in the biography ?


Mar 25, 2014 at 10:14 PM
Aug 17, 2014 at 5:56 PM
Edited Aug 17, 2014 at 6:49 PM
Instead of starting a new topic, I have a follow up for this one. Whenever I try to use this call, I only get 20 results. I tried setting the "count" to more than 20 (see example below) to no avail. The call should have a maximum of 1000 results according to Twitter's own documentation - so what am I doing wrong?

        var foundUsers =
            (from user in twitterCtx.User
             where user.Type == UserType.Search &&
                  user.Query == "searchphrase" &&
                  user.Count == 100
             select user).ToListAsync();

Edit: I see now that the maximum amount of users returned (per call?) is 20. Do I need to call this function over and over again with an increment to user.Page?
Aug 17, 2014 at 9:08 PM

User/Search returns a max of 20/call. It also pages differently from timelines. In this case, you would loop and increment page count until Twitter no longer returns results.