Search builder

Twitter (X) Advanced Search: Query Builder and All Operators

Updated:

Advanced search query builder

Fill in any fields. The query updates as you type; open it on X or copy it into the search box or an API call.

Words
Accounts
Filters
Engagement (minimum)
Dates (UTC)

Your query

Fill in a field above to build a query.

X asks you to log in before it shows search results.

Quick Answer

Type operators straight into the X search box. For example, from:nasa since:2024-01-01 until:2024-02-01 min_faves:100 finds NASA posts from January 2024 with at least 100 likes. The tables below list the operators that work, grouped by what they filter, with an example for each.

Words and phrases

OperatorExampleFinds
(space)nasa esaPosts containing both words
ORnasa OR esaPosts containing either word (OR must be uppercase)
"…""state of the art"The exact phrase
-rocket -launchPosts that do not contain a word
##buildinpublicA hashtag
$$TSLAA cashtag
lang:lang:jaPosts in a language (auto-detected, not always accurate)
url:url:github.comPosts linking to a domain

Accounts

OperatorExampleFinds
from:from:nasaPosts by an account
to:to:nasaReplies to an account
@@nasaPosts that mention an account
list:list:715919216927322112Posts from members of a public list
filter:verifiedai filter:verifiedPosts from verified accounts
filter:blue_verifiedai filter:blue_verifiedPosts from accounts with paid verification
filter:followsai filter:followsPosts from accounts you follow

Dates and times

OperatorExampleFinds
since:since:2024-01-01Posts on or after a date
until:until:2024-02-01Posts before a date (the date itself is excluded)
since_time: / until_time:since_time:1704067200Posts after or before a Unix timestamp in seconds
within_time:within_time:2dPosts from the last 2 days (also h, m, s)
since_id: / max_id:since_id:1745000000000000000Posts after or up to a post ID

Date and time operators only work when combined with a keyword or another operator. To browse a date range without writing queries, use the free Twitter search-by-date tool.

Engagement

OperatorExampleFinds
min_faves:min_faves:500Posts with at least 500 likes
min_retweets:min_retweets:100Posts with at least 100 reposts
min_replies:min_replies:50Posts with at least 50 replies
-min_faves:-min_faves:10Posts with fewer than 10 likes (same pattern for reposts and replies)

Media and post type

OperatorExampleFinds
filter:mediaeclipse filter:mediaPosts with any image or video
filter:imageseclipse filter:imagesPosts with images
filter:videoseclipse filter:videosPosts with video, including YouTube links
filter:native_videoeclipse filter:native_videoPosts with video uploaded to X
filter:linkslaunch filter:linksPosts that contain a link
filter:repliesnasa -filter:repliesReplies (prefix with - to exclude them)
filter:quotenasa filter:quoteQuote posts
filter:nativeretweetsfrom:nasa filter:nativeretweetsOnly reposts made with the repost button (roughly the last 7–10 days)
include:nativeretweetsnasa include:nativeretweetsAdds reposts to the results, which leave them out by default (roughly the last 7–10 days)
filter:retweetsnasa -filter:retweetsOld-style "RT @" reposts and quote posts (prefix with - to exclude them)
filter:self_threadsfrom:nasa filter:self_threadsPosts in an account’s own threads
conversation_id:conversation_id:1745000000000000000Every post in one conversation

Location

OperatorExampleFinds
near:coffee near:"San Francisco"Geotagged posts near a place
within:coffee near:"San Francisco" within:10kmLimits near: to a radius in km or mi
geocode:coffee geocode:37.77,-122.41,10kmPosts within a radius of coordinates

Only posts with location data match, which is a small share of all posts.

Useful combinations

  • An account’s posts in a date range: from:nasa since:2024-01-01 until:2024-02-01
  • Popular original posts about a topic: "product hunt" min_faves:100 -filter:replies lang:en
  • Replies people send to a brand: to:yourbrand filter:replies
  • Who links to your website: url:yourdomain.com -from:yourbrand
  • Viral videos from the past week: filter:native_video min_faves:1000 within_time:7d
  • What an account reposted recently: from:nasa filter:nativeretweets

Advanced search tips

  • Use the Latest tab to get every matching post in time order. Top shows a ranked selection and leaves many posts out.
  • until: excludes its own date, so until:2024-02-01 stops at the end of 31 January. For an exact cutoff, use since_time: and until_time: with a Unix timestamp.
  • Group alternatives in parentheses: (nasa OR esa) launch finds launch posts that mention either agency.
  • Reposts are left out of results by default. Add filter:nativeretweets to see only reposts, or include:nativeretweets to mix them in.
  • Cut noise with -filter:replies and -filter:links, or set a floor with min_faves:.
  • If a query returns nothing, remove one operator at a time until results appear.

Limits to know

  • X requires you to be logged in to see search results.
  • Some operators only cover recent posts; for example, the native-repost filters work for roughly the last 7–10 days.
  • Language detection is automatic and sometimes wrong, so lang: can miss posts.
  • Hyphens or spaces inside an operator value break the query; wrap phrases in quotes where the operator allows it.

Run the same searches through an API

TwexAPI’s advanced search endpoint (POST /twitter/advanced_search/page) takes your query terms in searchTerms, a sortBy of Latest or Top, and a cursor for the next page. Each page returns up to 20 posts, at about $0.05 per 1,000 posts, and does not need an X account.

Search tweets by date (free tool)Advanced search API docs

FAQ

How do I search old tweets by date?

Combine since: and until: with a keyword or account, for example from:nasa since:2020-01-01 until:2020-02-01. until: excludes its own date. The free TwexAPI search-by-date tool builds the same query for you.

Can I use Twitter advanced search without an account?

Not on x.com, which requires you to log in before showing search results. The TwexAPI search-by-date tool and the advanced search API return public posts without an X account.

How do I search for retweets in Twitter advanced search?

Add filter:nativeretweets to see only reposts; from:nasa filter:nativeretweets shows what NASA reposted. include:nativeretweets adds reposts to the normal results instead. Both only reach back about 7–10 days.

Why does advanced search miss some posts?

Some operators only cover recent posts, language detection is not perfect, and location operators only match posts that carry location data. Try the Latest tab and loosen one filter at a time.

Related Guides

Sources

Prices change. Confirm current rates on each provider’s pricing page before you buy. TwexAPI is an independent provider and is not affiliated with or endorsed by X Corp.

Twitter (X) Advanced Search Builder & All Operators (2026) | TwexAPI