This project has moved. For the latest updates, please go here.

Searching for Users

Find users with a search query.

Entity: User
Type: UserType.Search
Parameters/Filters:
Name Purpose Type Required
Count Number of results to return for each page; max is 20 int no
IncludeEntities Include Twitter entities bool no
Page Page to return; defaults to 1 int no
Query Search query string yes

v3.0 Example:
            var foundUsers =
                await
                (from user in twitterCtx.User
                 where user.Type == UserType.Search &&
                       user.Query == "JoeMayo"
                 select user)
                .ToListAsync();

            if (foundUsers != null)
                foundUsers.ForEach(user => 
                    Console.WriteLine("User: " + user.ScreenNameResponse));
v2.1 Example:
            var user =
                (from usr in twitterCtx.User
                 where usr.Type == UserType.Search &&
                       usr.Query == "Joe Mayo"
                 select usr)
                 .FirstOrDefault();

            Console.WriteLine("User Name: " + user.Name);

Twitter API: users/search

Last edited Nov 29, 2013 at 4:52 AM by JoeMayo, version 10