1

I've been trying to use the twitter API 1.1 Linq to Twitter (for c#) to search for tweets at #something.

This is what I came up with:

var query = (from tweet in twitterContext.Search
                  where tweet.Type == SearchType.Search &&
                  tweet.Query == "#something"
                  select tweet).SingleOrDefault();

The problem is that this query only returns 6 statuses and I want to get at least 100. I've tried adding:

tweet.Count == 100

and

tweet.Statuses.Count == 100

with no luck, does anybody know what I am doing wrong?

Jimbo
  • 25,790
  • 15
  • 86
  • 131
user1106784
  • 153
  • 1
  • 3
  • 10

1 Answers1

2

tweet.Count is correct. Twitter is only returning 6 statuses. Twitter search isn't a normal search engine. Their search algorithm only goes back a certain number of days (undefined), doesn't necessarily return all matches, and won't return results for certain types of queries. You can test by performing the same search at https://twitter.com/search-home.

Joe Mayo
  • 7,501
  • 7
  • 41
  • 60
  • Thanks, just checked https://twitter.com/search-home but it returns much more than my search. Not strange, since it's twitters own search they doesn't have the same limits. – user1106784 May 17 '13 at 18:32