Search public X (Twitter) posts by keyword, phrase, hashtag, account, language, date and engagement. Every filter is verified on the post. No login or cookies.
One search per line, written like X search. Each line is a separate search with its own limit. Supported: plain words (all required, whole-word match, not case or accent sensitive), "exact phrases" (the words in that order), -excluded words, a OR b, #hashtags, $cashtags, @mentions, from:, to:, lang:, since:, until: (exclusive, as on X), min_faves:, min_retweets:, min_replies:, url:, filter:media, filter:images, filter:videos, filter:links, filter:replies, -filter:replies, -filter:quote, filter:verified. Words and phrases also match the author's handle and name and expanded links, not only the post body. Words joined by OR form an any-of group, and separate groups must all hold. Filters that can't be honored stop the run with a clear error before any charge: near:, within: and similar operators need a login on X, negated operators such as -lang: or -min_faves: aren't supported, and neither are repeated filters that can't both hold, such as lang:en lang:es. A repeated date or engagement filter keeps the stricter value.
Type:string[]
Example:
[
"\"climate change\" lang:en min_faves:10"
]
X search URLs
searchUrls
Optional
Links such as https://x.com/search?q=bitcoin. The q= value is read as one search term. Other parameters in the link, such as f=live, are ignored; use Sort order instead.
Type:string[]
All of these words
allWords
Optional
Each word must appear in the post. Combined with every search term, or forms the search when there are none. Whole-word match, not case or accent sensitive. The match covers post text, expanded links, and the author's handle and name.
Type:string[]
This exact phrase
exactPhrases
Optional
The words must appear together in this order. Punctuation and case between them must match X's text, apart from repeated spaces and letter case. Like all text filters, it also matches the author's handle and name and expanded links.
Type:string[]
Any of these words
anyWords
Optional
At least one must appear. Words or phrases both work. Any OR group in a search term must hold as well, so this narrows that search instead of widening it.
Type:string[]
None of these words
excludeWords
Optional
Posts containing any of these words or phrases are dropped. The check also covers the author's handle and name and expanded links.
Type:string[]
Hashtags
hashtags
Optional
Every hashtag must be on the post. With or without the #. Matching is exact, not by prefix.
Type:string[]
Cashtags
cashtags
Optional
Every cashtag must be on the post. With or without the $.
Type:string[]
From these accounts
fromUsers
Optional
Posts written by any of these accounts. Username, @username or profile link. Up to 20 per search. This mode also reads the account's latest and highlighted public posts directly from X, so it finds more than a keyword search. Don't combine with from: in a search term.
Type:string[]
Replying to these accounts
toUsers
Optional
Posts that reply directly to any of these accounts. Don't combine with to: in a search term.
Type:string[]
Mentioning these accounts
mentioning
Optional
Every account listed must be @-mentioned in the post.
Type:string[]
Language
language
Optional
X's language code, such as en, es or pt. Posts X labelled with another language are dropped. A search term with a different lang: stops the run with a clear error.
Type:string
Example:
en
From date
since
Optional
Posts on or after this UTC date, YYYY-MM-DD. Long ranges are split into smaller date windows automatically so older posts are reached.
Type:string
Example:
2026-10-01
Until date
until
Optional
Posts before this UTC date, YYYY-MM-DD. Exclusive, like until: on X: 2026-11-01 ends on 31 October.
Type:string
Example:
2026-11-01
Minimum likes
minLikes
Optional
Only posts with at least this many likes. 0 means no minimum.
Type:integer
Minimum:0
Default:0
Minimum reposts
minReposts
Optional
Only posts with at least this many reposts. 0 means no minimum.
Type:integer
Minimum:0
Default:0
Minimum replies
minReplies
Optional
Only posts with at least this many replies. 0 means no minimum.
Type:integer
Minimum:0
Default:0
Minimum views
minViews
Optional
Only posts with at least this many views. 0 means no minimum.
Type:integer
Minimum:0
Default:0
Media
mediaType
Optional
Keep only posts with this kind of content. Videos include animated GIFs. Links means an external link.
Type:string
Default:any
Options:
anymediaimagesvideoslinks
Replies
replies
Optional
Include replies, drop them, or keep only replies. The index holds far fewer replies than original posts, so Only replies usually returns less.
Type:string
Default:include
Options:
includeexcludeonly
Include quote posts
includeQuotes
Optional
Turn off to drop posts that quote another post.
Type:boolean
Default:true
Verified authors only
verifiedOnly
Optional
Keep only posts from accounts with X's verified badge.
Type:boolean
Default:false
Sort order
sortBy
Optional
Order of the results within each search. Latest: newest first. Top: most liked first. Relevance: the search index's own order. Latest and Top sort the matching posts this run found (up to 1.2 times the limit); they aren't X's own Latest and Top tabs. Results are written when the search finishes; Relevance writes them as they are found.
Type:string
Default:latest
Options:
latesttoprelevance
Maximum posts per search
maxItems
Optional
The most posts to deliver for each search term. You pay a small start fee per run plus each delivered post, so a run with no matches still costs the start fee. The real number can be lower when the index has no more matching posts. Each post is delivered once per run, even if it matches several searches.
Type:integer
Minimum:1
Maximum:10000
Default:50
Maximum posts to scan per search
maxPostsToScan
Optional
The most candidate posts to read per search. Scanned posts that don't match aren't charged. Leave empty for automatic: up to 8 times the limit and at least 300. Set a lower number to end a search sooner, or a higher one to read further into a search with many matches. In both cases a search stops early when too few scanned posts match, because scanning isn't charged, so a higher number doesn't force a deeper scan of a very narrow filter.