How to Search Multiple Keywords on X With OR
To search multiple keywords on X, separate them with uppercase OR, for example tesla OR rivian OR lucid, to get posts that contain any of the words.

To search multiple keywords on X, separate them with uppercase OR, for example tesla OR rivian OR lucid, to get posts that contain any of the words. Put the OR group in parentheses when you add other filters: (tesla OR rivian) min_faves:100. Lowercase or is searched as an ordinary word.
OR is the operator for synonyms, spelling variants and competitor lists. It sits with the other word operators in the Twitter advanced search operators reference. This guide is one of the techniques in how to search tweets by keyword.
How Do You Use OR in Twitter Search?
You use OR by typing it in capital letters between each alternative, or by entering the words in the Any of these words field of the Advanced search form. X’s advanced search supports posts containing any of the words (X Help Center). Listed below are the 3 steps.
- Type the alternatives with uppercase OR:
coffee OR tea. - Press Enter.
- Open Latest for every match.
Do Spaces Mean AND or OR on X?
Spaces mean AND on X: coffee tea needs both words, while coffee OR tea needs either. OR must be uppercase to work as an operator (twitter-advanced-search reference).
| Query | Returns posts with |
|---|---|
coffee tea |
Both words |
coffee OR tea |
Either word |
coffee or tea |
coffee, or, and tea (all three words) |
(coffee OR tea) morning |
morning, plus coffee or tea |
Why Do You Need Parentheses With OR?
You need parentheses so that OR applies only to the alternatives and not to the rest of the query. (coffee OR tea) from:username returns that account’s posts about either drink. Without the brackets, X may read the query as coffee on its own, or tea from that account. Nested groups are covered in how to build complex Twitter search queries.
OR Search Examples
These OR searches cover the tasks people use multiple keywords for most. Replace the words, handles and dates.
| Task | Query |
|---|---|
| Synonyms | (car OR vehicle OR automobile) |
| Spelling variants | (colour OR color) |
| Competitors | (@brand1 OR @brand2 OR @brand3) |
| Several hashtags | (#AI OR #MachineLearning) |
| Several exact phrases | ("customer service" OR "customer support") |
| Several accounts | (from:user1 OR from:user2) keyword |
| Several languages | keyword (lang:en OR lang:es) |
| Two topics in popular posts | (bitcoin OR ethereum) min_faves:1000 |
Can You Combine OR With Exclusions?
Yes, put the OR group first and the excluded words after it: (jaguar OR panther) -car -football. The minus sign applies to each word it precedes. Exclusions are covered in how to exclude words from Twitter search.
Why Does an OR Search Return the Wrong Results?
An OR search returns the wrong results when OR is lowercase, when parentheses are missing, or when the query has too many operators. A single query holds about 22 operators before X stops applying them (twitter-advanced-search reference). Split very long OR lists into two searches.
How to Run Long Keyword Lists With apidojo
When an OR list gets too long for one X search, split it into several queries in apidojo’s Tweet Scraper V2 on Apify, and turn on includeSearchTerms to see which query found each post. One run batches up to 5 queries (Apify).
{
"searchTerms": [
"(tesla OR rivian OR lucid) -filter:retweets",
"(polestar OR nio OR byd) -filter:retweets"
],
"includeSearchTerms": true,
"sort": "Latest"
}
It costs $0.40 per 1,000 tweets. See how to scrape tweets by keyword and the apidojo Twitter Scraper.
Questions people ask
Does X support AND?
Yes, a space between words means AND; you don't type the word AND.
Can you use the pipe symbol for OR?
Use uppercase OR, which is the form X documents and the form every guide in this series uses.
Is there a limit to how many OR terms you can use?
Keep a query under about 22 operators; beyond that X may ignore parts of it.