I’m trying to write some code that will send a search request to twitter.
However, the return seems to be ignored the parameters that I’m putting into the URL (except the actual search query).
The url I’m using is:
http://search.twitter.com/search.json?q=obama&src=typd&count=4&tresult_type=popular
The count just returns 20 though, regardless of what I enter, and I’m fairly sure the popular but isn’t being returned either.
Can anyone see where I’m going wrong?
Thanks
There is no count parameter in Twitter Search API. Check their documentation: Twitter API: search
You can use the rpp (results per page) to achieve what you want in the 1.0 API:
Or with the new 1.1 API: