You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reference for Enterprise Search operators — keywords, users, URLs, hashtags, engagement thresholds, language, geo, and Post type filters with examples.
keywords
search operators
query operators
search syntax
search filters
operators guide
query syntax
This page provides a complete list of operators available when building a query for the Search API endpoints.
Overview
Operators are used to match on specific Post attributes. There are two types:
Standalone operators — Can be used alone or with any other operators
Conjunction-required operators — Must be used with at least one standalone operator
Keyword and Phrase Operators
Operator
Type
Summary
Example
keyword
Standalone
Matches a keyword within the Post body (tokenized match)
pepsi OR cola OR "coca cola"
emoji
Standalone
Matches an emoji within the Post body
(😃 OR 😡) 😬
"exact phrase"
Standalone
Matches the exact phrase within the Post body
("X API" OR #v2) -"recent search"
Entity Operators
Operator
Type
Summary
Example
#
Standalone
Matches Posts containing a hashtag (exact match)
#thankunext #fanart
@
Standalone
Matches Posts mentioning a username
(@XDevelopers OR @API) -@X
$
Standalone
Matches Posts containing a cashtag
$twtr OR @XDevelopers -$fb
User Operators
Operator
Type
Summary
Example
from:
Standalone
Matches Posts from a specific user
from:XDevelopers OR from:API
to:
Standalone
Matches Posts in reply to a specific user
to:XDevelopers OR to:API
retweets_of:
Standalone
Matches Retweets of a specific user
retweets_of:twitterdev
URL Operators
Operator
Type
Summary
Example
url:
Standalone
Tokenized match on URL (matches url or expanded_url fields)
url:"https://developer.twitter.com"
Context and Entity Operators
Operator
Type
Summary
Example
context:
Standalone
Matches Posts with a specific domain/entity pair
context:10.799022225751871488
entity:
Standalone
Matches Posts with a specific entity string value (recent search only)
These precision operators filter Posts by minimum engagement counts. They are available on /2/tweets/search/recent, /2/tweets/search/all, /2/tweets/counts/recent, and /2/tweets/counts/all following the May 4, 2026 migration to the new X core platform search index.
Use them to narrow results to Posts that crossed an engagement threshold. For example, surface higher-signal content during a real-time event or filter long-tail noise from a broad topic query.
Operator
Type
Summary
Example
min_likes:
Conjunction required
Matches Posts with at least the specified number of likes
coffee min_likes:100
min_replies:
Conjunction required
Matches Posts with at least the specified number of replies
from:XDevelopers min_replies:10
min_reposts:
Conjunction required
Matches Posts with at least the specified number of reposts
#launch min_reposts:50
Engagement counts are evaluated at query time and may lag real-time activity by a short interval. These operators require at least one other standalone operator in the query (they are conjunction-required).
Logical Operators
Operator
Summary
Example
OR
Logical OR between expressions
cat OR dog
Space (AND)
Logical AND between expressions
cat dog (both required)
()
Grouping for complex expressions
(cat OR dog) -is:retweet
-
Negation/exclusion
cat -grumpy
Supported Languages
The lang: operator supports these BCP 47 language codes:
Language
Code
Language
Code
Language
Code
Amharic
am
Greek
el
Portuguese
pt
Arabic
ar
Gujarati
gu
Romanian
ro
Armenian
hy
Hebrew
iw
Russian
ru
Basque
eu
Hindi
hi
Serbian
sr
Bengali
bn
Hungarian
hu
Simplified Chinese
zh-CN
Bulgarian
bg
Indonesian
in
Slovak
sk
Catalan
ca
Italian
it
Slovenian
sl
Croatian
hr
Japanese
ja
Spanish
es
Czech
cs
Kannada
kn
Swedish
sv
Danish
da
Korean
ko
Tamil
ta
Dutch
nl
Latvian
lv
Telugu
te
English
en
Lithuanian
lt
Thai
th
Estonian
et
Malayalam
ml
Traditional Chinese
zh-TW
Finnish
fi
Marathi
mr
Turkish
tr
French
fr
Norwegian
no
Ukrainian
uk
German
de
Persian
fa
Urdu
ur
Georgian
ka
Polish
pl
Vietnamese
vi
Query limitations
Access level
Recent search
Full-archive search
Self-serve
512 characters
1,024 characters
Enterprise
4,096 characters
4,096 characters
Next steps
Learn query syntax and best practices
Get started with Search
Build and test queries interactively