searchTweetsAdvanced
Search for tweets using advanced query operators and filters. Each page returns approximately 20 tweets. Use cursor for pagination.
## Available Search Operators
### Basic Operators
- `watching now` - containing both "watching" and "now" (default AND operator)
- `"happy hour"` - containing the exact phrase "happy hour"
- `love OR hate` - containing either "love" or "hate" (or both)
- `beer -root` - containing "beer" but not "root"
### Hashtags and Mentions
- `#haiku` - containing the hashtag "haiku"
- `@NASA` - mentioning Twitter account "NASA"
### User-specific Searches
- `from:interior` - sent from Twitter account "interior"
- `to:NASA` - a Tweet authored in reply to Twitter account "NASA"
- `list:NASA/astronauts-in-space-now` - sent from accounts in the specified Twitter list
### Media Filters
- `puppy filter:media` - containing "puppy" and an image or video
- `puppy filter:native_video` - containing "puppy" and an uploaded video, Amplify video, Periscope, or Vine
- `puppy filter:periscope` - containing "puppy" and a Periscope video URL
- `puppy filter:vine` - containing "puppy" and a Vine
- `puppy filter:images` - containing "puppy" and links identified as photos, including third parties
- `puppy filter:twimg` - containing "puppy" and a pic.twitter.com link
- `puppy -filter:retweets` - containing "puppy", filtering out retweets
### Link Filters
- `hilarious filter:links` - containing "hilarious" and linking to URL
- `puppy url:amazon` - containing "puppy" and a URL with "amazon" anywhere within it
### Date Filters
- `superhero since:2015-12-21` - containing "superhero" and sent since date "2015-12-21" (year-month-day format)
- `puppy until:2015-12-21` - containing "puppy" and sent before date "2015-12-21"
### Sentiment Filters
- `movie -scary :)` - containing "movie", not "scary", with positive attitude
- `flight :(` - containing "flight" with negative attitude
- `traffic ?` - containing "traffic" and asking a question
## Query Examples
- `"AI" OR "Twitter" from:elonmusk since:2021-12-31`
- `#bitcoin filter:media -filter:retweets`
- `"climate change" lang:en filter:links`
- `from:NASA filter:images :)`
**Note:** Make sure to URL encode queries. Space characters can be represented by "%20" or "+".