Premium Advanced Search Rules (Twitter)

Boolean Logic and Syntax

Scraawl SocL’s Premium Advanced Search rules for Twitter deliver matching data to you based on search rules that you set up.

Keywords are not case sensitive.

Search RulesSample Matching Posts
happy
Happy
I am very happy today.
I am very happy today.

Find multiple keywords in the same post.

Search RulesSample Matching Posts
happy AND party
happy party
I'm very happy since I'm having a party.

Find any one of several keywords (or both).

Search RulesSample Matching Posts
happy OR partyI'm very happy.
I'm having a party tonight.
I'm very happy since I'm having a party.

NOTs should always follow an AND because a negated term by itself will result in a HUGE volume search.

Search RulesSample Matching Posts
happy AND NOT birthday
happy -birthday
I am happy to see you.
Sunflowers make me happy.

Logical clauses can be combined using parentheses to create more complex searches

Search RulesSample Matching Posts
(happy OR party) AND (holiday OR house)
(happy OR party) (holiday OR house)
We always have a party for the Thanksgiving holiday.

To exclude multiple terms from your search, negate an OR statement.

Search RulesSample Matching Post
happy AND NOT (party OR holiday)
happy -(party OR holiday)
Happy birthday!

NOTE: Negations should always follow an AND. Negations following an OR would return everything except the negation. E.g., this is an invalid search: ipad OR -(iphone OR ipod)

Quotes (“”) allow you to search for an exact phrase (which is not case sensitive).

Search RulesSample Matching Posts
"happy birthday"
Happy birthday!

Order of Operations

When combining AND and OR functionality in a single rule, the following order of operations will dictate how your rule is evaluated.

  1. Operators connected by AND logic are combined first
  2. Then, operators connected with OR logic are applied
Search RulesSample Matching Posts
iphone OR ipad AND apple =
iphone OR (ipad AND apple)
I own an apple ipad.
apple OR iphone ipad =
apple OR (iphone AND ipad)
My grandma has an iphone and an ipad.

ipad AND iphone OR android =
(iphone ipad) OR android
Who has an ipad and not an iphone?

To eliminate uncertainty and ensure that your rules are evaluated as intended, group terms together with parentheses where appropriate. For example:

Search RulesSample Matching Posts
iphone –(ipad OR android)I can’t live without my iphone.
(iphone OR ipad) AND appleHe needs to fix his iphone at the apple store.
ipad -(iphone OR android)I read books on my ipad.

Operators

Below is a list of all operators supported in Twitter Advanced Search.

Logic TypeScraawl SyntaxDescription
from:from:usernameMatches any activity from a specific user.
to:to:scraawlMatches any activity that is in reply to a particular user.
has:linkscat has:linksThe operators matches activities which contain links in the message body.
langlang:zhMatches posts that have been classified by posts source as being of a particular language (if, and only if, the post has been classified). It is important to note that each post is currently only classified as being of one language, so AND’ing together multiple languages will yield no results.
##hongkongprotestsMatches any activity with the given hashtag.
point_radius: [lon lat radius]point_radius:[-77.0365 38.8977 10mi] lang:enMatches against the Exact Location (x,y) of the post when present, or against the location of a geo-profiled place identified in the text, and where the geo-profiled place is fully contained within the defined region.
@@scraawlMatches any tweet that mentions the given username.
place:"New York City"Matches tweets tagged with the specified location.
has:mediahas:mediaMatches tweets that contain a media url classified by Twitter.
Back to top