How To Use Syntax Codes

Syntax codes are a set of rules that you can use on the Crowd Intelligence platform to better sift through your data and construct specific Boolean queries. They can be applied in your keyword filters, general excludes, and Boolean queries. Think of syntax codes as the language you use to communicate precise instructions to the platform. They must be used exactly as specified so that the platform can correctly interpret and execute your search criteria.

Below is a list of different types of syntax codes along with their descriptions and examples:

  • User ID
    To analyze a specific post/comment/share created by a specific user:
    Syntax code: user.id:user id
    Applicable for: Twitter, Facebook, or Instagram
    Example: user.id:123456789
  • User Bio
    To analyze a mention by searching in the user’s bio (Twitter only):
    Syntax code: user.bio:keyword
    Example: user.bio:doctor AND football
  • Post/Comment/Share ID
    To analyze a specific post/comment/share using its id:
    Syntax code: id:userid
    Applicable for: The ID of a post/comment/share
    Example: id:14587678678687
  • URL
    To analyze a specific post/comment/share using its link:
    Syntax code: url:”link”
    Applicable for: The link of a post/comment/share
    Example: url:”https://www.instagram.com/p/BxpVyBTA35P/”
  • Parent Post ID
    To analyze a comment/share on a specific post:
    Syntax code: parent_post_id:postid
    Applicable for: The ID of a reply, comment, or retweet
    Example: parent_post_id:14587678678687
  • Stream ID
    To analyze a post/comment/share on a specific stream:
    Syntax code: stream_id:stream id
    Example: stream_id:14587678678687
  • Hashtags
    To analyze a post/comment/share that contains one or multiple hashtags:
    Syntax code: hashtags:keyword
    Example: hashtag:crowdanalyzer OR hashtag:(crowdanalyzer OR/AND egypt)
  • Tags
    To analyze tagged posts/comments/shares:
    Syntax code: tags:tag id
    Example: tags:14587678678687
  • User Mentions
    To analyze a post/comment/share where a specific user is mentioned:
    Syntax code: user_mentions:userid
    Example: user_mentions:14587678678687
  • Parent Post User ID
    To analyze comments/shares on posts authored by a specific user (Twitter only):
    Syntax code: parent_post_user_id:userid
    Example: parent_post_user_id:14587678678687
  • Mention Type
    To analyze a specific mention type (tweet, post, reply, comment, or retweet):
    Syntax code: mention_type:type
    Example: mention_type:post OR mention_type:(post OR reply)
  • Interactions Count
    To analyze mentions with a specified interactions count (or a range):
    Syntax code: interactions_count:value
    Example: interactions_count:[5 TO *]
    (The asterisk * represents infinity.)
  • Engagements Likes Count
    To analyze mentions with a specified likes count (for all reactions):
    Syntax code: engagements.likes_count:value
    Example: engagements.likes_count:[5 TO *]
  • User Followers Count
    To analyze mentions from a user with a specific followers count (or range):
    Syntax code: user.followers_count:value
    Example: user.followers_count:[500 TO *]
  • Source
    To analyze mentions/interaction from a specific network:
    Syntax code: source:sourcename
    Applicable for: Twitter, Facebook, Instagram, YouTube, LinkedIn, Blogs, Forums, News, or Print
    Example: source:facebook
  • User Gender
    To analyze mentions/interactions authored by a specific gender:
    Syntax code: user_gender:gender type
    Example: user_gender:male
  • Sentiment
    To analyze mentions/interactions with a specific sentiment:
    Syntax code: sentiment:sentiment type
    Applicable for: Positive (“+”), Negative (“-“), or Neutral (“±”)
    Example: sentiment:”+”
  • Country
    To analyze mentions/interactions from a specific country:
    Syntax code: country:2 letter country code
    Example: country:eg
  • Has Photo
    To analyze mentions/interactions that include a photo:
    Syntax code: has_photo:true/false
    Example: has_photo:true
  • User Verified
    To analyze mentions/interactions created by a verified account:
    Syntax code: user.verified:true/false
    Example: user.verified:true
  • Language
    To analyze mentions/interactions of a specific language:
    Syntax code: lang:2 letter language code
    Example: lang:ar
  • Dialect
    To analyze mentions/interactions with a specific dialect:
    Syntax code: dialect:dialect code
    Applicable for: Standard (std), Egyptian (eg), or Gulf (gf)
    Example: dialect:std

Related Articles:

  • How To Create & Modify A Saved Filter
  • What Are Filters

Browse Advertisements topics

Self-Onboarding Guide
Account Security
Language Selection
Profile Management
Crowd Analyzer Advertisement Homepage (Feed)
Search Tips
Search Box Guide
Adding Beats to Existing Bookmark Lists
Bookmark Management
Creating a New Bookmark List
Dashboard Guide
Filters Guide
How do I change the language setting on my account?
What maximum number of users can be added to my team?
What training resources are available for new users?
What languages does the platform support?
How do I report a bug or issue?
How do I reset my password?

Browse Crowd Analyzer topics

How to Create an Account and Log In
Overview
How To Set-up Your Agency Dashboard
How To Modify A Workspaces
How To Set-up The Time Zone
How To Activate The Dashboard
How to Add Team Members
How to Change Your Email and Password
How To Enable Sources
How To Authenticate Social Accounts
How To Create A Query Stream
How To Create A Social Account Stream
What Is Sentiment Analysis?
Sentiment Analysis In-depth
No posts found
How To View The Language & Dialect Analysis
How To View The Sources Analysis
How To View The Sentiment Analysis
How To View The Gender Analysis
Definitions
How To View A Stream Analysis
What Is Top Activities
What Is Activities Scorecard
What Is Insights Snapshot
What Is A Digest
How To Create A Master Report
How To Create A Spike Detector Alert
What Is An Alert
How To View Instagram Social Media Analysis
How To View Facebook Social Media Analysis
What Are Bulk Actions
How To Export Your Data
How To Use The Activities Tab
How To Create A Smart Tag
How To Create A Manual Tag
How To Create & Modify A Saved Filter
What Are Filters
How to Import Historical Activities
How to Access Your Past Historical Searches
What Are Historical Search Units & Activities
How Far Back Can I Go Historically
How to Create a Historical Search
What is a Historical Search
How To Use Syntax Codes
Explore Mobile Alerts
Feed Settings and Sorting
Using Mobile Feeds in the App
How to Build and Manage Mobile Feeds
What Makes Mobile Feeds Special?
Explore Mobile Feeds
No posts found

Need more help?

Contact us!