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