Filtering Twitter Usernames & User IDs

Often you'll want to follow a group of Twitter users, based upon their Twitter usernames or user IDs. For example you might have a list of users in your CRM that you'd like to follow.

To get a broad set of results, you should consider looking in a number of places for mentions of the users:

  • Original tweets by the users
  • Retweets by the users
  • Retweets of the users' tweets
  • Mentions or replies to a user
  • Mentions of a user in a retweet

You can filter based on Twitter usernames or IDs, whichever suits you best.

By Usernames

You can cover all the places mentioned above with the following Twitter targets:

// Original tweets by the users
twitter.user.screen_name in "Apple, Google, Twitter"

// Retweets by the users
OR twitter.retweet.user.screen_name in "Apple, Google, Twitter"

// Retweets of the users' tweets
OR twitter.retweeted.user.screen_name in "Apple, Google, Twitter"

// Mentions or replies to a user
OR twitter.mentions in "Apple, Google, Twitter"

// Mentions of a user in a retweet
OR twitter.retweet.mentions in "Apple, Google, Twitter"

By User IDs

You can cover all the places mentioned above with the following Twitter targets:

// Original tweets by the users
twitter.user.id in [380749300, 20536157, 783214]

// Retweets by the users
OR twitter.retweet.user.id in [380749300, 20536157, 783214]

// Retweets of the users' tweets
OR twitter.retweeted.user.id in [380749300, 20536157, 783214]

// Mentions (or replies to) a user
OR twitter.mention_ids in [380749300, 20536157, 783214]

// Mentions of a user in a retweet
OR twitter.retweet.mention_ids in [380749300, 20536157, 783214]