We don't include the total number of results so there isn't a way to know how many pages there are.
On Tue, Nov 23, 2010 at 2:14 AM, computerzworld <meat2...@gmail.com> wrote: > Thanks for the reply. Actually what I want is to paginate the results > that are coming. And results will be based on keyword which was > getting searched so it may have full 20 pages result or may have just > 1 page result. So is there any way to identify how many pages are > there apart from this? > > On Nov 23, 12:55 am, Matt Harris <thematthar...@twitter.com> wrote: > > Just realised you were referring to users/search. Like Search. the number > of > > results is not returned by this method. > > > > The maximum results returned are 1000 with the per_page argument allowing > > you to choose up to 20 results per page. In terms of behavior this > feature > > is the same as "Find People" on twitter.com. > > > > In that interface we just provide a 'more' button when keeps being > displayed > > until the results returned are not equal to the per_page requested. > > > > Best > > @themattharris > > Developer Advocate, Twitterhttp://twitter.com/themattharris > > > > On Mon, Nov 22, 2010 at 11:48 AM, Matt Harris <thematthar...@twitter.com > >wrote: > > > > > Hi computerzworld, > > > > > This information is not available through the API. > > > > > The following information might be helpful with paginating the Search > > > results though. The Search API will return roughly 1500 results total, > > > separated into pages of size 'rpp' (results per page). The maximum rpp > is > > > 100, and the default is 15. > > > > > Best, > > > @themattharris > > > Developer Advocate, Twitter > > >http://twitter.com/themattharris > > > > > On Mon, Nov 22, 2010 at 8:14 AM, computerzworld <meat2...@gmail.com > >wrote: > > > > >> Hello, > > >> I want to find how many results are found for > > >> particular keyword search. It may have more or less results according > > >> to search query entered by user. I want to find total how many results > > >> are there for a particular keyword in order to implement pagination on > > >> the search results. How can I get total number of records? Please help > > >> me. Thanks. > > > > >> -- > > >> Twitter developer documentation and resources: > http://dev.twitter.com/doc > > >> API updates via Twitter:http://twitter.com/twitterapi > > >> Issues/Enhancements Tracker: > > >>http://code.google.com/p/twitter-api/issues/list > > >> Change your membership to this group: > > >>http://groups.google.com/group/twitter-development-talk > > -- > Twitter developer documentation and resources: http://dev.twitter.com/doc > API updates via Twitter: http://twitter.com/twitterapi > Issues/Enhancements Tracker: > http://code.google.com/p/twitter-api/issues/list > Change your membership to this group: > http://groups.google.com/group/twitter-development-talk > -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk