The ptwix search method accept string in this format
“q=bye&rpp=20″
The rpp parameter is the number of result to show.
There are some instructions about search queries (Come directly from twitter search API method page)
Example queries:
- Containing a word: http://search.twitter.com/search.atom?q=twitter
- From a user: http://search.twitter.com/search.atom?q=from%3Aal3x
- Replying to a user (tweet starts with @mzsanford): http://search.twitter.com/search.atom?q=to%3Amzsanford
- Mentioning a user (tweet contains @biz): http://search.twitter.com/search.atom?q=%40biz
- Containing a hashtag (up to 16 characters): http://search.twitter.com/search.atom?q=%23haiku
- Combine any of the operators together: http://search.twitter.com/search.atom?phrase=happy+hour&until=2009-03-24
- Originating from an application: http://search.twitter.com/search.atom?q=landing+source:tweetie
Search operators:
Most search operators can be used with API queries.
Boolean operators:
- OR to combine queries:
- Mentioning @twitterapi OR @twitter: http://search.twitter.com/search.atom?q=%40twitterapi+OR+%40twitter
- Negation: place - in front of the operator.
- Referencing a user but not from that user: http://search.twitter.com/search.atom?q=dougw+-from%3Adougw
Operator Limits:
- since: and until operators:
- since: will return a HTTP 404 if it is too old
- until: cannot be in the future
- since: and until: do not accept the negation (-) operation
- filter:links operator:
- results are limited to 7 days
- source: operator:
- results are limited to 7 days
- queries must contain at least one keyword parameter with the source: operator
- lang= operator:
- results are limited to 7 days
- location operator:
- results are limited to 7 days
- near:
- cannot be used in API search
Related posts
Tags: 1.1, queries, search operators, twitter search



Follow PtwiX on twitter













[...] more information on searching queries and operators read this article Bookmark [...]