Skip to main content
This page provides a complete list of operators available when building rules for Powerstream.

Overview

Powerstream uses Boolean queries with operators to filter Posts based on keywords and metadata. Rules can be up to 2,048 characters and you can have up to 1,000 rules.

User Operators

OperatorSummaryExample
from:Matches posts from a specific userfrom:xdevelopers or from:123456
to:Matches posts directed to a specific userto:jvaleski
retweets_of:Matches reposts of a specific userretweets_of:xdevelopers

Content Operators

OperatorSummaryExample
contains:Matches posts containing specific text/keywordscontains:hello or contains:-2345.432
url_contains:Matches posts with URLs containing specific texturl_contains:"com/willplayforfood"
lang:Matches posts in specific languageslang:en

Entity Operators

OperatorSummaryExample
has:Matches posts containing specific entitieshas:images, has:geo, has:mentions
is:Matches posts of specific types or propertiesis:retweet, is:reply

Available has: options

  • has:mentions — Posts that mention another user
  • has:geo — Posts with geolocation data
  • has:links — Posts containing links
  • has:media — Posts containing media
  • has:lang — Posts with detected language
  • has:symbols — Posts containing cashtags
  • has:images — Posts containing images
  • has:videos — Posts containing videos

Available is: options

  • is:retweet — Retweets
  • is:reply — Replies to other posts

Location Operators

OperatorSummaryExample
place:Matches posts from specific places/locationsplace:"Belmont Central" or place:02763fa2a7611cf3
bounding_box:Matches posts within a geographic bounding boxbounding_box:[-112.424083 42.355283 -112.409111 42.792311]
point_radius:Matches posts within a radius of a pointpoint_radius:[-111.464973 46.371179 25mi] or point_radius:[-111.464973 46.371179 15km]

User Profile Operators

OperatorSummaryExample
bio:Matches posts from users with specific bio contentbio:"data scientist"
bio_name:Matches posts from users with specific name in biobio_name:PhD

Post Reference Operators

OperatorSummaryExample
retweets_of_status_id:Matches reposts of specific postsretweets_of_status_id:1234567890123456789
in_reply_to_status_id:Matches replies to specific postsin_reply_to_status_id:1234567890123456789

Special Syntax Operators

OperatorSummaryExample
@Mention operator@username
"phrase"Matches exact phrases"exact phrase"

Logical Operators

OperatorSummaryExample
ORLogical OR between expressionsx OR facebook
Space/ANDLogical AND between expressionsx facebook (both terms must be present)
()Grouping for complex expressions(x OR facebook) iphone
-Negation/exclusionx -facebook (x but not facebook)

Building rules

Basic examples

# Match posts from a specific user
from:xdevelopers

# Match posts containing keywords
contains:API contains:developer

# Match posts with images in English
has:images lang:en

Combining operators

# Posts from @xdevelopers OR @api that aren't retweets
(from:xdevelopers OR from:api) -is:retweet

# Posts mentioning AI with images, excluding retweets
contains:AI has:images -is:retweet lang:en

# Posts within 25 miles of a location
point_radius:[-73.935242 40.730610 25mi] lang:en

Next steps