{"id":150,"date":"2022-10-05T13:01:38","date_gmt":"2022-10-05T13:01:38","guid":{"rendered":"http:\/\/exportdata.tweetmap.org\/2022\/10\/05\/advanced-twitter-search-operators\/"},"modified":"2023-08-30T19:07:44","modified_gmt":"2023-08-30T19:07:44","slug":"advanced-twitter-search-operators","status":"publish","type":"post","link":"https:\/\/www.exportdata.io\/blog\/advanced-twitter-search-operators\/","title":{"rendered":"Advanced Twitter Search Operators Cheatsheet"},"content":{"rendered":"<\/p>\n<p>These operators work on <a href=\"https:\/\/twitter.com\/search-advanced\">Web<\/a>, <a href=\"https:\/\/twitter.com\/explore\">Twitter Explore page<\/a> search bar, <a href=\"https:\/\/mobile.twitter.com\/search-advanced\">Mobile<\/a>, <a href=\"https:\/\/tweetdeck.twitter.com\/\">TweetDeck<\/a> and <a href=\"https:\/\/www.exportdata.io\/download-tweets\">ExportData historical tweets<\/a> export page.<\/p>\n<h2 id=\"tweet-content-operators\">Tweet Content Operators<\/h2>\n<p><!--kg-card-begin: markdown--><\/p>\n<table>\n<thead>\n<tr>\n<th>\n<div style=\"width:100px\">Operator<\/div>\n<\/th>\n<th>Explanation<\/th>\n<th>\n<div style=\"width:100px\">Example<\/div>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>breaking news<\/code> <\/p>\n<p> <code>(breaking news)<\/code><\/td>\n<td>Finds tweets containing both &quot;<code>breaking<\/code>&quot; and &quot;<code>news<\/code>&quot; words. Spaces are implicit AND operators. Brackets can be used to group individual words if using other operators.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=breaking%20news&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>competition OR airdrop<\/code><\/td>\n<td>Either &quot;<code>competition<\/code>&quot; or &quot;<code>airdrop<\/code>&quot;. OR must be in uppercase.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=competition%20OR%20airdrop&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>&quot;state of the art&quot;<\/code><\/td>\n<td>The complete phrase &quot;<code>state of the art<\/code>&quot;. Will also match &quot;<code>state-of-the-art<\/code>&quot;. Also use quotes to prevent spelling correction.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=%22state%20of%20the%20art%22&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>&quot;this is the * time this week&quot;<\/code><\/td>\n<td>A complete phrase with a wildcard. <code>*<\/code> does not work outside of a quoted phrase or without spaces.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=%22this%20is%20the%20*%20time%20this%20week%22&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>+radiooooo<\/code><\/td>\n<td>Force a term to be included as-is. Useful to prevent spelling correction.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=%2Bradiooooo&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>-love<\/code> <br \/> <code>-&quot;live laugh love&quot;<\/code><\/td>\n<td><code>-<\/code> is used for excluding &quot;<code>love<\/code>&quot;. Also applies to quoted phrases and other operators.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=bears%20-chicagobears&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>#tgif<\/code><\/td>\n<td>A hashtag<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=%23tgif&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>$TWTR<\/code><\/td>\n<td>A cashtag, like hashtags but for stock symbols<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=%24TWTR%20OR%20%24FB%20OR%20%24AMZN%20OR%20%24AAPL%20OR%20%24NFLX%20OR%20%24GOOG&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>What ?<\/code><\/td>\n<td>Question marks are matched<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=(Who%20OR%20What%20OR%20When%20OR%20Where%20OR%20Why%20OR%20How)%20%3F&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>:) OR :(<\/code><\/td>\n<td>Some emoticons are matched, positive <code>:) :-) :P :D<\/code> or negative <code>:-( :(<\/code><\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=%3A%29%20OR%20%3A-%29%20OR%20%3AP%20OR%20%3AD%20OR%20%3A%28%20OR%20%3A-%28&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td>?<\/td>\n<td>Emoji searches are also matched. Usually needs another operator to work.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=%F0%9F%91%80%20lang%3Aen&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>url:google.com<\/code><\/td>\n<td>urls are tokenized and matched, works very well for subdomains and domains, not so well for long urls, depends on url. Youtube ids work well. Works for both shortened and canonical urls, eg: <code>gu.com<\/code> shortener for <code>theguardian.com<\/code>. When searching for Domains with hyphens in it, you have to replace the hyphen by an underscore (like <code>url:t_mobile.com<\/code>) but underscores <code>_<\/code> are also tokenized out, and may not match<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=url%3Agu.com&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>lang:en<\/code><\/td>\n<td>Search for tweets in specified language. Not always accurate. Language is specified in <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_ISO_639-1_codes\">2-letter ISO code<\/a>.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=lang%3Aen&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--kg-card-end: markdown--><\/p>\n<p>There are some special language codes that work:<\/p>\n<ul>\n<li><code>lang:und<\/code> &#8211; undefined language.<\/li>\n<li><code>lang:qam<\/code> &#8211; for tweets with mentions only (works for tweets since <code>2022-06-14<\/code>).<\/li>\n<li><code>lang:qct<\/code> &#8211; for tweets with cashtags only (works for tweets since <code>2022-06-14<\/code>).<\/li>\n<li><code>lang:qht<\/code> &#8211; for tweets with hashtags only (works for tweets since <code>2022-06-14<\/code>).<\/li>\n<li><code>lang:qme<\/code> &#8211; for tweets with media links only (works for tweets since <code>2022-06-14<\/code>).<\/li>\n<li><code>lang:qst<\/code> &#8211; for tweets with very short text (works for tweets since <code>2022-06-14<\/code>).<\/li>\n<li><code>lang:zxx<\/code> &#8211; for tweets with either media or Twitter Card only, without any additional text (works for tweets since 2022-06-14`.<\/li>\n<\/ul>\n<h2 id=\"user-specific-operators\">User Specific Operators<\/h2>\n<p><!--kg-card-begin: markdown--><\/p>\n<table>\n<thead>\n<tr>\n<th>\n<div style=\"width:100px\">Operator<\/div>\n<\/th>\n<th>Explanation<\/th>\n<th>\n<div style=\"width:100px\">Example<\/div>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>from:user<\/code><\/td>\n<td>Sent by a particular <code>@username<\/code> e.g. <code>&quot;dogs from:NASA&quot;<\/code><\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=dogs%20from%3Anasa&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>to:user<\/code><\/td>\n<td>Replying to a particular <code>@username<\/code><\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=%23MoonTunes%20to%3Anasa&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>@user<\/code><\/td>\n<td>Mentioning a particular <code>@username<\/code>. Combine with <code>-from:username<\/code> to get only mentions<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=%40cern%20-from%3Acern&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>list:108534289<\/code> <br \/> <code>list:user\/list-slug<\/code><\/td>\n<td>Tweets from members of this public list. Use the list ID from the API or with urls like <code>https:\/\/twitter.com\/i\/lists\/4143216<\/code>. List slug is for old list urls like <code>http:\/\/twitter.com\/nasa\/lists\/astronauts<\/code>. Cannot be negated, so you can&#8217;t search for &quot;not on list&quot;.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=list%3A4143216&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:verified<\/code><\/td>\n<td>From verified users<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Averified&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:follows<\/code><\/td>\n<td>Only from accounts you follow. Cannot be negated.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Afollows%20lang%3Aen&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:social<\/code> <br \/> <code>filter:trusted<\/code><\/td>\n<td>Only from algorithmically expanded network of accounts based your own follows and activities. Works on &quot;<code>Top<\/code>&quot; results not &quot;<code>Latest<\/code>&quot;<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=kitten%20filter%3Asocial&amp;src=typed_query\">?<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--kg-card-end: markdown--><\/p>\n<h2 id=\"geo-operators\">Geo Operators<\/h2>\n<p><!--kg-card-begin: markdown--><\/p>\n<table>\n<thead>\n<tr>\n<th>\n<div style=\"width:100px\">Operator<\/div>\n<\/th>\n<th>Explanation<\/th>\n<th>\n<div style=\"width:100px\">Example<\/div>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>near:city<\/code><\/td>\n<td>Geotagged in this place. Also supports Phrases, eg: <code>near:&quot;The Hague&quot;<\/code><\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=near%3A%22The%20Hague%22&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>near:me<\/code><\/td>\n<td>Near where twitter thinks you are<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=near%3Ame&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>within:radius<\/code><\/td>\n<td>Within specific radius of the &quot;near&quot; operator, to apply a limit. Can use km or mi. e.g. <code>fire near:san-francisco within:10km<\/code><\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=fire%20near%3Asan-francisco%20within%3A10km&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>geocode:lat,long,radius<\/code><\/td>\n<td>E.g., to get tweets 10km around twitters hq, use <code>geocode:37.7764685,-122.4172004,10km<\/code><\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=geocode%3A37.7764685%2C-122.4172004%2C10km&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>place:96683cc9126741d1<\/code><\/td>\n<td>Search tweets by <a href=\"https:\/\/developer.twitter.com\/en\/docs\/tweets\/data-dictionary\/overview\/geo-objects.html#place\">Place Object<\/a> ID eg: USA Place ID is <code>96683cc9126741d1<\/code><\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=place%3A96683cc9126741d1&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--kg-card-end: markdown--><\/p>\n<h2 id=\"time-operators\">Time Operators<\/h2>\n<p><!--kg-card-begin: markdown--><\/p>\n<table>\n<thead>\n<tr>\n<th>\n<div style=\"width:100px\">Operator<\/div>\n<\/th>\n<th>Explanation<\/th>\n<th>\n<div style=\"width:100px\">Example<\/div>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>since:yyyy-mm-dd<\/code><\/td>\n<td>On or after (inclusive) a specified date<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=since%3A2019-06-12%20until%3A2019-06-28%20%23nasamoontunes&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>until:yyyy-mm-dd<\/code><\/td>\n<td>Before (NOT inclusive) a specified date. Combine with a &quot;since&quot; operator for dates between.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=since%3A2019-06-12%20until%3A2019-06-28%20%23nasamoontunes&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>since_time:1142974200<\/code><\/td>\n<td>On or after a specified unix timestamp in seconds. Combine with the &quot;until&quot; operator for dates between. Maybe easier to use than <code>since_id<\/code> below.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=since_time%3A1561720321%20until_time%3A1562198400%20%23nasamoontunes&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>until_time:1142974215<\/code><\/td>\n<td>Before a specified unix timestamp in seconds. Combine with a &quot;since&quot; operator for dates between. Maybe easier to use than <code>max_id<\/code> below.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=since_time%3A1561720321%20until_time%3A1562198400%20%23nasamoontunes&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>since_id:tweet_id<\/code><\/td>\n<td>After (NOT inclusive) a specified Snowflake ID<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=since_id%3A1138872932887924737%20max_id%3A1144730280353247233%20%23nasamoontunes&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>max_id:tweet_id<\/code><\/td>\n<td>At or before (inclusive) a specified Snowflake ID (see <a href=\"#snowflake-ids\">Note<\/a> below)<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=since_id%3A1138872932887924737%20max_id%3A1144730280353247233%20%23nasamoontunes&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>within_time:2d<\/code> <br \/> <code>within_time:3h<\/code> <br \/> <code>within_time:5m<\/code> <br \/> <code>within_time:30s<\/code><\/td>\n<td>Search within the last number of days, hours, minutes, or seconds<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=nasa%20within_time%3A30s&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--kg-card-end: markdown--><\/p>\n<h2 id=\"tweet-type-operators\">Tweet Type Operators<\/h2>\n<p><!--kg-card-begin: markdown--><\/p>\n<table>\n<thead>\n<tr>\n<th>\n<div style=\"width:100px\">Operator<\/div>\n<\/th>\n<th>Explanation<\/th>\n<th>\n<div style=\"width:100px\">Example<\/div>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>filter:nativeretweets<\/code><\/td>\n<td>Only retweets created using the retweet button. Works well combined with <code>from:<\/code> to show only retweets.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=from%3Anasa%20filter%3Anativeretweets&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>include:nativeretweets<\/code><\/td>\n<td>Native retweets are excluded by default. This shows them. In contrast to <code>filter:<\/code>, which shows only retweets, this includes retweets in addition to other tweets<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=from%3Anasa%20include%3Anativeretweets%20&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:retweets<\/code><\/td>\n<td>Old style retweets (&quot;RT&quot;) + quoted tweets.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Aretweets%20from%3Atwitter%20until%3A2009-11-06%09&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:replies<\/code><\/td>\n<td>Tweet is a reply to another Tweet. good for finding conversations, or threads if you add or remove <code>to:user<\/code><\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=from%3Anasa%20filter%3Areplies%20-to%3Anasa&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>conversation_id:tweet_id<\/code><\/td>\n<td>Tweets that are part of a thread (direct replies and other replies)<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=conversation_id%3A1140437409710116865%20lang%3Aen&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:quote<\/code><\/td>\n<td>Contain Quote Tweets<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=from%3Anasa%20filter%3Aquote&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>quoted_tweet_id:tweet_id<\/code><\/td>\n<td>Search for quotes of a specific tweet<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=quoted_tweet_id%3A1138631847783608321&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>quoted_user_id:user_id<\/code><\/td>\n<td>Search for all quotes of a specific user<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=quoted_user_id%3A11348282&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>card_name:poll2choice_text_only<\/code> <br \/> <code>card_name:poll3choice_text_only<\/code> <br \/> <code>card_name:poll4choice_text_only<\/code> <br \/> <code>card_name:poll2choice_image<\/code> <br \/> <code>card_name:poll3choice_image<\/code> <br \/> <code>card_name:poll4choice_image<\/code><\/td>\n<td>Tweets containing polls. For polls containing 2, 3, 4 choices, or image Polls.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=lang%3Aen%20card_name%3Apoll4choice_text_only%20OR%20card_name%3Apoll3choice_text_only%20OR%20card_name%3Apoll2choice_text_only&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--kg-card-end: markdown--><\/p>\n<h2 id=\"engagement-operators\">Engagement Operators<\/h2>\n<p><!--kg-card-begin: markdown--><\/p>\n<table>\n<thead>\n<tr>\n<th>\n<div style=\"width:100px\">Operator<\/div>\n<\/th>\n<th>Explanation<\/th>\n<th>\n<div style=\"width:100px\">Example<\/div>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>filter:has_engagement<\/code><\/td>\n<td>Has some engagement (replies, likes, retweets). Can be negated to find tweets with no engagement.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=breaking%20filter%3Anews%20-filter%3Ahas_engagement&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>min_retweets:5<\/code><\/td>\n<td>A minimum number of Retweets. Counts seem to be approximate for larger (1000+) values.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=min_retweets%3A5000%20nasa&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>min_faves:10<\/code><\/td>\n<td>A minimum number of Likes<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=min_faves%3A10000%20nasa&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>min_replies:100<\/code><\/td>\n<td>A minimum number of replies<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=min_replies%3A1000%20nasa&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>-min_retweets:500<\/code><\/td>\n<td>A maximum number of Retweets<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=-min_retweets%3A500%20nasa&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>-min_faves:500<\/code><\/td>\n<td>A maximum number of Likes<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=-min_faves%3A500%20nasa&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>-min_replies:100<\/code><\/td>\n<td>A maximum number of replies<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=-min_replies%3A100%20nasa&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--kg-card-end: markdown--><\/p>\n<h2 id=\"media-operators\">Media Operators<\/h2>\n<p><!--kg-card-begin: markdown--><\/p>\n<table>\n<thead>\n<tr>\n<th>\n<div style=\"width:100px\">Operator<\/div>\n<\/th>\n<th>Explanation<\/th>\n<th>\n<div style=\"width:100px\">Example<\/div>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>filter:media<\/code><\/td>\n<td>All media types.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Amedia%20cat&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:twimg<\/code><\/td>\n<td>Native Twitter images (<code>pic.twitter.com<\/code> links)<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Atwimg%20cat&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:images<\/code><\/td>\n<td>All images.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Aimages%20cat&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:videos<\/code><\/td>\n<td>All video types, including native Twitter video and external sources such as Youtube.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Avideos%20cat&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:periscope<\/code><\/td>\n<td>Periscopes<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Aperiscope%20cat&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:native_video<\/code><\/td>\n<td>All Twitter-owned video types (native video, vine, periscope)<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Anative_video%20cat&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:vine<\/code><\/td>\n<td>Vines (RIP)<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Avine%20cat&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:consumer_video<\/code><\/td>\n<td>Twitter native video only<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Aconsumer_video%20cat&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:pro_video<\/code><\/td>\n<td>Twitter pro video (Amplify) only<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Apro_video%20cat&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:spaces<\/code><\/td>\n<td>Twitter Spaces only<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Aspaces&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--kg-card-end: markdown--><\/p>\n<h2 id=\"filter-operators\">Filter Operators<\/h2>\n<p><!--kg-card-begin: markdown--><\/p>\n<table>\n<thead>\n<tr>\n<th>\n<div style=\"width:100px\">Operator<\/div>\n<\/th>\n<th>Explanation<\/th>\n<th>\n<div style=\"width:100px\">Example<\/div>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>filter:links<\/code><\/td>\n<td>Only containing some URL, includes media. use <code>-filter:media<\/code> for urls that aren&#8217;t media<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Afollows%20filter%3Alinks%20-filter%3Amedia&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:mentions<\/code><\/td>\n<td>Containing any sort of <code>@mentions<\/code><\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Amentions%20from%3Atwitter%20-filter%3Areplies&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:news<\/code><\/td>\n<td>Containing link to a news story. Combine with a list operator to narrow the user set down further.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Anews%20lang%3Aen&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:safe<\/code><\/td>\n<td>Excluding NSFW content. Excludes content that users have marked as &quot;Potentially Sensitive&quot;. Doesn&#8217;t always guarantee SFW results.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=filter%3Asafe%20%23followfriday&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>filter:hashtags<\/code><\/td>\n<td>Only Tweets with Hashtags.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=from%3Anasa%20filter%3Ahashtags&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--kg-card-end: markdown--><\/p>\n<h2 id=\"app-specific-operators\">App Specific Operators<\/h2>\n<p><!--kg-card-begin: markdown--><\/p>\n<table>\n<thead>\n<tr>\n<th>\n<div style=\"width:100px\">Operator<\/div>\n<\/th>\n<th>Explanation<\/th>\n<th>\n<div style=\"width:100px\">Example<\/div>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>source:client_name<\/code><\/td>\n<td>Sent from a specified client e.g. source:tweetdeck (See <a href=\"#common-clients\">Note<\/a> for common ones) eg: <code>twitter_ads<\/code> doesn&#8217;t work on it&#8217;s own, but does with another operator.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=source%3A%22GUCCI%20SmartToilet%E2%84%A2%22%20lang%3Aen&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>card_domain:pscp.tv<\/code><\/td>\n<td>Matches domain name in a Twitter Card. Mostly equivalent to <code>url:<\/code> operator.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=card_domain%3Apscp.tv&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>card_url:pscp.tv<\/code><\/td>\n<td>Matches domain name in a Card, but with different results to <code>card_domain<\/code>.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=card_url%3Apscp.tv&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>card_name:audio<\/code><\/td>\n<td>Tweets with a Player Card (Links to Audio sources, Spotify, Soundcloud etc.)<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=card_name%3Aaudio&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>card_name:animated_gif<\/code><\/td>\n<td>Tweets With GIFs<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=card_name%3Aanimated_gif&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>card_name:player<\/code><\/td>\n<td>Tweets with a Player Card<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=card_name%3Aplayer&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>card_name:app<\/code> <br \/> <code>card_name:promo_image_app<\/code><\/td>\n<td>Tweets with links to an App Card. <code>promo_app<\/code> does not work, <code>promo_image_app<\/code> is for an app link with a large image, usually posted in Ads.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=card_name%3Aapp%20OR%20card_name%3Apromo_image_app&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>card_name:summary<\/code><\/td>\n<td>Only Small image summary cards<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=card_name%3Asummary&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>card_name:summary_large_image<\/code><\/td>\n<td>Only large image Cards<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=card_name%3Asummary_large_image&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>card_name:promo_website<\/code><\/td>\n<td>Larger than <code>summary_large_image<\/code>, usually posted via Ads<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=card_name%3Apromo_website%20lang%3Aen&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>card_name:promo_image_convo<\/code> <br \/> <code>card_name:promo_video_convo<\/code><\/td>\n<td>Finds <a href=\"https:\/\/business.twitter.com\/en\/help\/campaign-setup\/conversational-ad-formats.html\">Conversational Ads<\/a> cards.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=carp%20card_name%3Apromo_image_convo&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>card_name:3260518932:moment<\/code><\/td>\n<td>Finds Moments cards. <code>3260518932<\/code> is the user ID of <code>@TwitterMoments<\/code>, but the search finds moments for everyone, not that specific user.<\/td>\n<td><a href=\"https:\/\/twitter.com\/search?q=card_name%3A3260518932%3Amoment&amp;src=typed_query&amp;f=live\">?<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--kg-card-end: markdown--><\/p>\n<h2 id=\"building-queries\">Building queries<\/h2>\n<h3 id=\"searching-tweets-that-quote-specific-user\">Searching tweets that quote specific user<\/h3>\n<p>In order to find all the tweets that quote a specific user, we should search for a Tweet like URL and exclude tweets from the user.<\/p>\n<p>Here is an example of searching tweets that quote tweets written by @ElonMusk:<\/p>\n<p><code>twitter.com\/elonmusk\/status\/ -elonmusk<\/code><\/p>\n<h3 id=\"negation\">Negation<\/h3>\n<p>Most <code>filter:type<\/code> operators can also be negated using the <code>-<\/code> symbol, with exceptions such as <code>filter:follows<\/code>. <\/p>\n<p>For example,<code>from:shl filter:media -filter:images<\/code> returns all tweets from @shl with all types of media except images. <\/p>\n<h3 id=\"complex-query-example\">Complex query example<\/h3>\n<p>Let&#8217;s search for mentions of &#8220;space&#8221; and either &#8220;big&#8221; or &#8220;large&#8221; by members of European Space Agency astronauts List, sent from an iPhone or twitter.com, with images, excluding mentions of #asteroid, since 2011.<\/p>\n<p><code>space (big OR large) list:esa\/astronauts (source:twitter_for_iphone OR source:twitter_web_client) filter:images since:2011-01-01 -#asteroid<\/code><\/p>\n<h2 id=\"matching-edge-cases\">Matching edge cases<\/h2>\n<ul>\n<li>Words might match on the user name, screen name, tweet text and url text (both shortened and expanded). <\/li>\n<li>Top results are limited. Twitter has some kind of threshold for engagements such as retweets, replies and likes count.<\/li>\n<li>Spelling corrections appear sometimes.<\/li>\n<li>Plurals will match. E.g. <code>bulls<\/code> will match <code>bull<\/code>.<\/li>\n<li>Private accounts are not included in the search index and their tweets do not appear in results.<\/li>\n<li>Locked or suspended accounts are excluded from results.<\/li>\n<li>Tweets might be excluded from results due to <a href=\"https:\/\/help.twitter.com\/en\/rules-and-policies\/enforcement-options\">Platform Use violations or anti-spam features<\/a>.<\/li>\n<li>Twitter is interpreting some words. For instance, when you search for <code>photo<\/code>, Twitter assumes you are looking for tweets with image media. If you want to search for literal word, you need to wrap the word in double quotes like <code>\"photo\"<\/code>.<\/li>\n<\/ul>\n<h2 id=\"limitations\">Limitations<\/h2>\n<p>Here we will gather known limitations of Twitter search.<\/p>\n<h3 id=\"operators\">Operators<\/h3>\n<ul>\n<li>The maximum number of operators seems to be about 22 or 23.<\/li>\n<li><code>card_name:<\/code> operator works only for the last 7-8 days.<\/li>\n<\/ul>\n<h3 id=\"geo-searches\">Geo searches<\/h3>\n<p> Very few tweets have exact geo coordinates. In June 2019, Twitter removed the ability to tag Tweets with precise location when using the Twitter iOS or Android apps.<\/p>\n<figure class=\"kg-card kg-embed-card\">\n<blockquote class=\"twitter-tweet\" data-width=\"550\">\n<p lang=\"en\" dir=\"ltr\">Most people don&#39;t tag their precise location in Tweets, so we&#39;re removing this ability to simplify your Tweeting experience. You&#39;ll still be able to tag your precise location in Tweets through our updated camera. It&#39;s helpful when sharing on-the-ground moments.<\/p>\n<p>&mdash; Twitter Support (@TwitterSupport) <a href=\"https:\/\/twitter.com\/TwitterSupport\/status\/1141039841993355264?ref_src=twsrc%5Etfw\">June 18, 2019<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/figure>\n<p>Instead, it is possible to tag tweets with a <a href=\"https:\/\/developer.twitter.com\/en\/docs\/twitter-api\/v1\/data-dictionary\/object-model\/geo#place\">Place object<\/a>. However, based on \u00a0<a href=\"https:\/\/help.twitter.com\/en\/safety-and-security\/tweet-location-settings\">Twitter Tweet location FAQ<\/a>, sharing precise location is disabled by default. Users need to opt in to use it. <\/p>\n<p>According to <a href=\"https:\/\/developer.twitter.com\/en\/docs\/tutorials\/advanced-filtering-for-geo-data\">Advanced filtering with geo data<\/a>, at most 1%-2% of tweets are geo-tagged.<\/p>\n<h2 id=\"resources\">Resources<\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/igorbrigadir\/twitter-advanced-search\">Advanced Search on Twitter<\/a><\/li>\n<li><a href=\"https:\/\/www.labnol.org\/internet\/twitter-search-tricks\/13693\/#how-to-search-twitter-like-a-pro\">The best Twitter Search Tricks<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>These operators work on Web, Twitter Explore page search bar, Mobile, TweetDeck and ExportData historical tweets export page. Tweet Content Operators Operator Explanation Example breaking news (breaking news) Finds tweets containing both &quot;breaking&quot; and &quot;news&quot; words. Spaces are implicit AND operators. Brackets can be used to group individual words if using other operators. ? competition &#8230; <a title=\"Advanced Twitter Search Operators Cheatsheet\" class=\"read-more\" href=\"https:\/\/www.exportdata.io\/blog\/advanced-twitter-search-operators\/\" aria-label=\"More on Advanced Twitter Search Operators Cheatsheet\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":140,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7,5],"class_list":["post-150","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-pinned-hero","tag-twitter-guides"],"_links":{"self":[{"href":"https:\/\/www.exportdata.io\/blog\/wp-json\/wp\/v2\/posts\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.exportdata.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.exportdata.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.exportdata.io\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.exportdata.io\/blog\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":1,"href":"https:\/\/www.exportdata.io\/blog\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"predecessor-version":[{"id":217,"href":"https:\/\/www.exportdata.io\/blog\/wp-json\/wp\/v2\/posts\/150\/revisions\/217"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.exportdata.io\/blog\/wp-json\/wp\/v2\/media\/140"}],"wp:attachment":[{"href":"https:\/\/www.exportdata.io\/blog\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.exportdata.io\/blog\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.exportdata.io\/blog\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}