1

Looking at question Get all tweets with specific hashtag

Is it possible to modify http://search.twitter.com/search.json?q=%23test so that just latest 5 results are returned ?

Thanks

Community
  • 1
  • 1
blue-sky
  • 51,962
  • 152
  • 427
  • 752

1 Answers1

1

According to the documentation there is no parameter to limit the result.

However, rpp limits the results per page. It may not be exactly what you want, but might suffice:

http://search.twitter.com/search.json?q=%23test&rpp=5

berkes
  • 26,996
  • 27
  • 115
  • 206
  • Thanks for that, reading the doc it says that http://search.twitter.com returns 'popular' search results. What is meant by the term 'popular'. Does this mean that all results may not be returned ? – blue-sky Mar 16 '11 at 11:41
  • 1
    The parameter "result_type" defaults to "mixed" meaning both real-time and popular results will be returned. Setting that to `recent` will result in the latest matches. – berkes Mar 16 '11 at 12:40