How to create a Twitter query

Introduction:

For this example, we will use the Twitter account of OBI4wan. Wherever the explanation mentions 'obi4wan,' you should use the Twitter account name when creating a search query.

Please note that when using the 'account' operator in a search query, the account name is case-sensitive. There are various things you can search for, with the first three options being the most commonly used.


Option 1: Searching for all Twitter messages that mention you

If this is also your Twitter account name, it will display your own Twitter messages, mentions, and private messages to this account.

OBI4wan AND source:twitter


Option 2: Searching for Twitter mentions

@obi4wan AND source:twitter


Option 3: Searching for Twitter direct messages:

"direct message" AND obi4wan


Furthermore, you can also search not only for all Twitter messages but also for the type of message, such as retweets:

Option 4: Searching for Twitter retweets

obi4wan AND posttype:RETWEET


Option 5: Searching for Twitter replies:

obi4wan AND posttype:REPLY


Option 6: Searching for all originally posted Twitter messages

obi4wan AND posttype:STATUS


Option 7: Searching for all messages you posted on Twitter

user:obi4wan AND source:twitter


It is also possible to display all messages from your Twitter timeline. This allows you to see what all the Twitter accounts you follow post on Twitter.

Option 8: Searching your Twitter timeline

timeline:obi4wan


In all the above cases, you can filter out your own replies and messages. You can do this by adding "NOT user:obi4wan" after a search query.

Option 9: Filtering out your own replies:

(@obi4wan AND source:twitter) NOT user:obi4wan