Twitter Releases New Version of the Gnip PowerTrack Rules and Documentation

Follow

Twitter has announced a new version of their PowerTrack rules that are used by researchers to search for tweets matching specific criteria. These new rules supersede the old Gnip rules.

The old Gnip rules documentation at http://support.gnip.com/apis/powertrack2.0/rules.html is now obsolete, and this webpage will soon redirect you to the new Twitter-supported webpage. As a DiscoverText user, you should review and begin using the new documentation immediately for premium operators that are available via DiscoverText. The new documentation is available at:

https://developer.twitter.com/en/docs/tweets/filter-realtime/overview/powertrack-api

PowerTrack Rules

Rules can have many parts and be up to 2048 characters in length. The rules are very specific, some of which are described in the following sections.

Frequently Used Operators

The most frequently used operators are:

Boolean OR

The Boolean OR operator in PowerTrack is the word OR in uppercase letters.

Example rule:

planet OR satellite

Returns:

All tweets that contain the word planet or the word satellite. It also returns all tweets that contain both the word planet and the word satellite because the Boolean OR is evaluated as TRUE.

 

Boolean AND

The Boolean AND operator in PowerTrack is a space character between the two words that are being searched.

Example rule:

planet satellite

Returns:

All tweets that contain both the word planet and the word satellite. Both words must exist in the tweet.

 

Boolean NOT

The Boolean NOT operator in PowerTrack is the minus sign.

Example rule:

planet -pluto

Returns:

All tweets that contain the word planet but do not contain the word pluto.

 

Other Useful Documentation Links

Standard operators

https://developer.twitter.com/en/docs/tweets/rules-and-filtering/overview/standard-operators

Premium operators

https://developer.twitter.com/en/docs/tweets/rules-and-filtering/overview/premium-operators

Guide to using premium operators

https://developer.twitter.com/en/docs/tweets/rules-and-filtering/guides/using-premium-operators

Filter realtime tweets

https://developer.twitter.com/en/docs/tweets/filter-realtime/overview/powertrack-api

 

 

Have more questions? Submit a request

Comments

Powered by Zendesk