Fabrizio Rinaldi, January 21, 2020

How To Search Twitter Like a Pro

Like most social networks, Twitter lets you search through its history with a nice visual interface, but there's so much more you can do under the surface.

For a simple search, you surely know that clicking the "Search Twitter" in the nav bar and typing a query will usually show you relevant risults, but if you want to be more specific you need to click the "Advanced search" button in the results page.

twitter search

This button will open a special interface where you'll be able to define your Twitter Advanced Search with great precision.

twitter advanced search

But what if you want to take it to next level?

Become a Twitter Search Pro

Thanks to a special syntax, you can make complex and powerful Twitter searches right from the search input field. This can be a more powerful and quicker way to get the tweets you're looking for.

If you want to get Twitter search results via email, automatically, and become a real Twitter Search Pro, give Mailbrew a try.

mailbrew twitter
Mailbrew in action

We'll show you some examples of what you can do with this syntax.

Track Mentions of your company, product or competitors

We use this query to get all the tweets mentioning Mailbrew in our inbox. This way we can promptly respond to users and chip in when there are some issues:

mailbrew OR mailbrew.com -filter:retweets -from:mailbrew

This query does

  • include all tweets with "mailbrew" or "mailbrew.com" in them
  • exclude (notice the minus "-" in front of filter) retweets from the results
  • exclude tweets that are tweets from the @mailbrew account (we don't what to get back our own tweets)

See tweets from various accounts in one feed

The query below will include all tweets from @verge, @techcruch and @macrumors:

from:verge OR from:techcrunch OR from:macrumors

Just see links from a specific account

The query below will return all the tweets from @viticci that have a link in them:

from:viticci filter:links

Discover tweets quoting one of your tweets

Twitter does not show tweets quoting one of your tweets in the activity tab, so it's easy to lose track of them. With this query you will get all the tweets quoting one of the tweets from the frankdilo account (just replace frankdilo with your twitter username — in both places).

url:https://twitter.com/frankdilo/status/ -from:frankdilo

Explanation of queries and operators

Basic Search

If you just want all the tweets mentioning a specific keyword you can just use that keyword as your query:

Mailbrew

If you want to do an exact match (only get tweets that contain exactly what you typed to the letter) wrap your query in quotes:

"email newsletter"

Operators

OR

mailbrew OR mailbrew.com

This one allows you to combine queries and get tweets that match either the first or the second condition. It is pretty useful to track brand mentions.

This will give you all the tweets that have either "mailbrew" or "mailbrew.com" in them.

AND

mailbrew AND newsletters

Allows you to combine queries that match both of the provided conditions.

This will give me the tweets containing (in the same tweet) both the search terms mailbrew and newsletters.

Parentheses () to group operators

mailbrew ("service" OR "app")

This query will give you all tweets that include either "mailbrew service" or "mailbrew app".

Filtering by User

From

from:mailbrew

This will return tweets sent from the @mailbrew Twitter account.

To

to:mailbrew

This will return all the tweets sent to the @mailbrew Twitter account. Great to track feature requests and complains to competing products.

Filter by Content

You can use a dash/minus "-" in front of any operator to exclude its content instead of including it.

Retweets

Include only retweets in the search results:

filter:retweets

Exclude retweets from search results:

-filter:retweets

Replies

Include only replies in the results:

filter:replies

Exclude replies from search results:

-filter:replies

Links, Images and Videos

You can include tweets with only image/images/videos with the queries below:

filter:links
filter:images
filter:videos

Search inside urls

Using the url: operator you can search for content inside urls.

The query below will match all urls that link to macstories.net:

url:macstories.net

You're a Twitter Search Pro now

Now you know how to use Advanced Twitter Search like pro. Go ahead and find some tweets, or setup automatic email newsletters with Mailbrew to get the tweets you need, on your schedule.

Read next: Get the best of Hacker News and Twitter in your inbox