Advanced Twitter search using query operators « Social Bearing (2024)

27 March, 2016 by Tom

This article is designed to give an overview of the types of advanced Twitter searches you can perform within Twitter’s officialsearchor using Social Bearing’s advanced search form

Advanced Twitter search using query operators « Social Bearing (1)

Tweets containing the word ‘sunrise’ in Indonesian (lang:in) using Social Bearing’s advanced Twitter search

The advanced Twitter search features allow you to search tweets from a specific language, date range, media type and more. Queries can also be built up using boolean operators such as AND and OR

All search features and operators described in this article can be used from Social Bearing’s advanced Twitter search feature, availableat the bottom of the standard tweet search

Advanced Twitter search using query operators « Social Bearing (2)

Twitter search using Social Bearing’s advanced options

A regularTwitter search

Before we get to the good stuff, lets run over howa regularTwitter search works

A standard search will find and return tweets that match thekeyword, hashtag, handle, URL or any other string of text searched for

Tweets are matched based on the content of the tweet; not only the textual content but will include the handle of the usertweeting or retweeting. Destination URL linkswithin tweets are also matched, even if those links have been shortened for display purposes

If more than one word or hashtag has been search for, then tweets are matched againstallsearch words, but in any order within the content of the tweet

Whole words are matched in a searchand plurals are treated as if they were separate words.Searching for ‘cloud’ for example will not match tweets against ‘clouds’

Hashtags are treated slightly differently. A search for ‘cloud’ will find tweets with the hashtag ‘#cloud’ as well as ‘cloud’ but the opposite is not true; searching for ‘#cloud’ will only find tweets for that hashtag

Exact Match Searches

Enclosing keywords “within quotes” will perform an exact match search; treating multiple keywords as if it were a single string

In the Social Bearing search, you can selectthe ‘exact match’option which will enclose the search term with quotes

Advanced Twitter search using query operators « Social Bearing (3)

Exact match search for tweets containing “space walk”

As an example, if you wanted tofind tweets mentioning the phrasespace walk, you would probablywant to usean exact match search“space walk”.Without using quotes, tweets would bereturned for the words ‘space’ and ‘walk’ usedanywhere within atweet; the default search behaviour. A tweet containing the text‘..walk around in this space..’ would probably not be relevant to thissearch

The OR operator

Using theOR operator would findtweets containing one word OR another. For example, the search phrase#sunrise OR sunset would find tweets containingeither the hashtag #sunrise or the word sunset,in any order.

The ‘OR’ operator shouldbe uppercase, otherwise the search will assume you were searching for the word ‘or’.

The AND operator

The‘AND’ operator can be used in the same way asOR, but the use of this operator alone istreated in the same way as a regular search.

For examplesearching for‘sunrise sunset’ or ‘sunrise AND sunset’ is essentially the same; tweets that contain both these words will be matched in any order.

The main reason you would want to use the AND operator is when stringing multiple operators together.

Combining Operators

For more complex Twitter searches, multiple operators can beused together to create a single search string.

Let’s say you wanted to search for design based jobs in London. Tweets advertising jobs might use numerous synonyms for the word ‘job’. To to help maximise tweets found, we could construct a search string using the AND and OR operators with variations on the word ‘job’, such as:

(London) AND (design OR designer OR creative) AND (career OR job ORjobs OR vacancy OR vacancies OR role)

The abovequery will find all tweets that mention ‘London’ along with any one of threevariations on job title and any one of five variations of the word ‘job’.

Using a Social Bearing searchwith the above stringreturns over 500 tweetswithin the past 24 hours. When compared against a search for design jobs Londonwhichgets less than 100 tweets in a similar timeframe, it’s easy to see how useful complex search queries can be.

The use of brackets arealso important as theyallow multiple words and operator rulesto be groupedtogether.

Within any regular search, a maximum limit of 500characters can be allowed in a search string, after the string is URL encoded (for example a space will take up 3 characters when encoded as ‘%20’ in the URL).

Exclude keywords from tweet search

The hyphen “-” is equivalent to the boolean NOT operator. Using a hyphen with a keywordwill exclude tweets containing thatword (or hashtag etc) from the search results.

For example, the search
easter -egg -eggs

Will find tweets containing ‘easter’ but not ‘egg’ or ‘eggs’.

Find tweets from any language

When searching for tweets, you can select from62 popular languages supported by Twitter using either the language drop down in the Social Bearing advanced Twitter search form or by using thelang:operator in the search field followed by the 2 letter language ISO code.

For examplelang:dewould search for German tweets.

The lang:commandcan be used by itself without any keywords, or combined with a regular search term and other operators.

Read more about finding tweets in a certain language

Find tweets from a specifichandle

If you want to find any tweets for a given handle only, including regular tweets, retweets and replies then thefrom:command will be useful for this.

Afrom:search is essentially the same as a user timelinesearchwith the 7 day limit applied, so it is only really useful when used alongsideother search commands to narrow down a twitter search.

For example
from:snowdenapple

Will find all tweets mentioning ‘apple’ from @snowden handle

from:handlecan be used in a search by itself or combined with any other commands or operators.

Find tweets to a specific user

The to:command in a Twitter searchwill find all direct tweets or replies from any handle to a specific handle. It does not include mentions of handle; to find mentions, a regular search of the @handle would do this.

You can use to: by itself or with other combinations. Usingto:withfrom:can be useful to search forcommunications between two users.

You can also usedto:andfrom:for the same Twitter user. This mightbe useful when you want to see replies a user has made to their own tweets.

Searching fortweets between dates

The commands since: and until: can be used to find tweets between two dates. On the Social Bearing advanced search formyou can use the drop down’s, otherwise you’ll need to enter dates in the format since:yyyy-mm-dd or until:yyyy-mm-dd in the searchfield.

As with most Twitter tools, tweets are limited to the past 7 days using Twitter’s free API. Some tools such may go back further but these are usually paid services that make use of enterprise level historical platformssuch as GNIP

Date based searches will take into account the retweet date to determine if retweets should be displayed, rather than the date the original retweeted tweet was created

The until date will not include the chosen dateand will work up until that date. So if you select an until date of 2016-03-02, that should include all tweets up until midnight 2016-03-01

Selecting asince:and until: date with the same values therefore will return empty result. since: includes the selected date and beyondwhereas until: includes everything before

Find tweets withpictures, videos or links

The filter: command using ‘media’, ‘videos’ or ‘links’ can be used in a search to findtweets containing media of these types. Alternatively, you can use the media options in the advanced search form

Tweets containing photos
The phrase sunset filter:media will find all tweets with images or videos. There is no ‘photo’ only based tweet command that can be used in a search, however you can still filter media types and select only pictures from the Social Bearing searchfilters on the results page

Find tweets containing videos
The filter:videos command is used to find tweets containing videos only. This will search for any tweets that havehadvideos uploaded directly to Twitter, or tweets containing links to popular video sites such as YouTube, Vine or Vimeo

Search fortweets withlinks
Tweets with any kind of link can be searched for using filter:links. Link filters also include pictures and other media as these are attached as a link to a tweet e.g. pic.twitter.com/vbas43asd

To further refine tweets with website links only, in the resulting Social Bearing search, you can select the ‘Links’ tweet type filter which don’t count picture based links

Find positive or negative tweets

You can use basic emoticons🙂 or 🙁 within a regular search to find tweets with a generally positive ornegative sentiment

For example, the searchspring🙂will likely contain positive tweets about Springandspring🙁will more likely benegative. This kind of search however doesn’t analyse the language used to determine sentiment; it will only match tweets containing positive or negative emoticons

Variations of these emoticons though are also taken into account. For example, a positive search using 🙂 will also return tweets containing 🙂 and 😀 which are all positivevariations of the smiley

The smileys can be used independently in a search or combined with keywords and other operators

A basic sentiment search using Twitter operators is different from how Social Bearing calculates sentiment, which assigns sentiment based on the words used within tweets

FurtherInformation

Examples of additional operators and examples that can be used in a Twitter Search can be found on Twitter’ssearch API page

Leave a Reply

Next Post:
Last post: New feature: Tweet layout mode »

Advanced Twitter search using query operators « Social Bearing (2024)

FAQs

Why is Twitter advanced search not working properly? ›

Why Advanced Search on Twitter isn't working could be because of your poor internet connection. To solve this problem, you must check the internet connection of your device. If the internet connection you are currently connected to is slow, you may need to restart your router or modem to get a better connection.

How to advanced Twitter search? ›

Click Advanced search, located underneath Search filters on the upper right of your results page, or click More options and then click Advanced search. Fill in the appropriate fields to refine your search results (see below for some helpful tips). Click Search to see your results.

How do you search Twitter by author? ›

First, go to your search bar and type in the phrase, "from:," followed by the account name. Click "Search," and then you will have all mentions, tweets, and media from the account you searched.

How do you search on Twitter without logging in? ›

If you know the username of the X user you want to search for, type "@" followed by the name of the user you want to search for (i.e., "@wikihow"). Add any words or phrases you want to search for. To search for Tweets containing specific words, add the words you want to search for in the search bar.

Does Twitter advanced search show deleted tweets? ›

Twitter's advanced search is a fantastic tool that allows you to locate erased posts effortlessly. The advanced search feature allows users to find a deleted tweet with keywords. You can enter the exact phrase, specific words, or any search term to dig it out.

How do I fix my search settings on Twitter? ›

Tap “Settings and Support” and click “Settings and Privacy.” Open “privacy and safety” and select “Content you see.” Click “Search settings.” A drop menu will appear with two options and checkboxes beside them.

Does Twitter Advanced Search still work? ›

Advanced Search is available when using Twitter's website—you can access it directly by heading to twitter.com/search-advanced. Alternatively, you can enter your query into the search bar on Twitter's home page and then click Advanced Search located next to the search filters on the upper-right of your results page.

How do you advanced search date range on Twitter? ›

Log in to your Twitter account, and go to Twitter advanced search. Enter your name in the "From these accounts" column and subheading in “People” column. Under “Dates” choose the starting and ending dates for your tweet search. Then click “Search” and Twitter will show you the list of posts from that specific time.

How to see deleted tweets? ›

To see deleted tweets, simply enter the Twitter URL into the Wayback Machine and select a date. You might be able to see all the tweets posted on that date, even if they have since been deleted.

How to check someones Twitter history? ›

Head to the Twitter advanced search page. 2. A pop-up will appear with a variety of text boxes. Scroll down to Accounts and in the From these accounts field, type in the username of the person whose tweets you want to search.

What happened to Twitter now? ›

Elon Musk completed his acquisition of Twitter in October 2022; Musk acted as CEO of Twitter until June 2023 when he was succeeded by Linda Yaccarino. Under Musk, Twitter was rebranded to X. It is one of the top social media platforms and the seventh-most visited website in the world.

Does nitter still work? ›

Nitter was officially discontinued in February 2024.

Can you search someone on Twitter without them knowing? ›

Yes, you can search for someone on Twitter without them knowing. When you search for a person's name, username, or tweets without an account or while logged out, the user will not be notified of your search.

Can Twitter users see your search history? ›

So, it is obvious that because Twitter doesn't show your search history to individuals who follow you, your followers won't know what you're looking for. No matter what privacy settings you use or don't use, no one will ever see what you search on Twitter unless you want to share that information with them.

Is Twitter having technical problems? ›

User reports indicate no current problems at X (Twitter)

This includes iPhone, Android, Blackberry or Windows Phone devices and traditional computers. Last problem: June 28, 2024 at 7:45 a.m.

What causes search suggestion ban on Twitter? ›

Common reasons include:

Spam Activity: Behavior that resembles that of bots or spam accounts: such as following and unfollowing large numbers of users quickly, repeatedly posting similar content, or mentioning users who do not follow you in numerous tweets.

Why doesn t Twitter show search results? ›

If you're encountering issues with certain results not appearing in your Twitter search, it might be due to the safe search mode. This feature is designed to exclude potentially sensitive content and accounts that you may have muted or blocked from search results, affecting both “Top” and “Latest” views.

Why won t Twitter analytics work? ›

Twitter Analytics won't work if it's not been more than two weeks since you created your account. The platform requires you to wait at least 14 days before checking this dashboard. Fortunately, the solution is simple if this is the reason you're facing this issue.

References

Top Articles
Latest Posts
Article information

Author: Gov. Deandrea McKenzie

Last Updated:

Views: 6197

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Gov. Deandrea McKenzie

Birthday: 2001-01-17

Address: Suite 769 2454 Marsha Coves, Debbieton, MS 95002

Phone: +813077629322

Job: Real-Estate Executive

Hobby: Archery, Metal detecting, Kitesurfing, Genealogy, Kitesurfing, Calligraphy, Roller skating

Introduction: My name is Gov. Deandrea McKenzie, I am a spotless, clean, glamorous, sparkling, adventurous, nice, brainy person who loves writing and wants to share my knowledge and understanding with you.