twitter.mentions

A list of the Twitter usernames mentioned in a Tweet.

Take care to use the correct operator with this target. As the examples show, use==if you are filtering for just one username and useinif you are filtering for a list of two or more usernames.

Examples

  1. Filter for Tweets that mention @datasift:

    twitter.mentions == "DataSift"

    Note that the argument is "datasift" rather than "@datasift". Also, remember that the target is an array and we are filtering for just one value so we use the == operator (not contains).

  2. Filter for Tweets that mention @LadyGaga or @Beyonce:

    twitter.mentions in "LadyGaga, Beyonce"

    The target is an array and we are filtering for a list of values so we use the in operator (not contains).

Notes

You cannot filter for usernames or links in the twitter.text target.

For example, suppose the original text of a Tweet is:

"@datasift launched today! http://bitly.com/r6pmP0"

The Tweet will not match against this filter:

twitter.text contains "@datasift"
OR twitter.text subst "bitly"

It will match against this filter:

twitter.text contains "launched today"

Resource information

Target service: Twitter

Target object: Twitter: Tweet

Type: array(string)

Array: Yes

Always exists: No