For example, cat #meme -grumpy will match Tweets containing the hashtag #meme and the term cat, but only if they do not contain the term grumpy. Prepend a dash (-) to a keyword (or any operator) to negate it (NOT). For example, specifying grumpy OR cat OR #meme will match any Tweets containing at least the terms grumpy or cat, or the hashtag #meme. Successive operators with OR between them will result in OR logic, meaning that Tweets will match if either condition is met. For example, snow day #NoSchool will match Tweets containing the terms snow and day and the hashtag #NoSchool. Successive operators with a space between them will result in boolean "AND" logic, meaning that Tweets will match only if both conditions are met. If you would like to string together multiple operators in a single query, you have the following tools at your disposal: AND logic "twitter data" has:mentions (has:media OR has:links) If we add in a standalone operator, such as the phrase "twitter data", the query would then work properly. This is because using these operators alone would be far too general, and would match on an extremely high volume of Tweets.įor example, the following queries are not supported since they contain only conjunction-required operators: Standalone operators can be used alone or together with any other operators (including those that require conjunction).įor example, the following query will work because it uses the #hashtag operator, which is standalone:Ĭonjunction-required operators cannot be used by themselves in a query they can only be used when at least one standalone operator is included in the query. Operator types: standalone and conjunction-required Advanced operators: Available when using a Project with certain access level.Core operators: Available when using any Project.We list which access level each operator is available to in the list of operators table using the following labels: While most operators are available to any developer, there are several that are reserved for certain access levels. If you have Pro access, your query can be 1,024 characters long for full archive search endpoint. If you have Basic or Pro access, your query can be 512 characters long for recent search endpoint. Your queries will be limited depending on which access level you are using. Punctuation, diacritics, and case sensitivity.Operator types: standalone and conjunction-required. To learn more about how to create high-quality queries, visit the following tutorial:īuilding high-quality filters for getting Twitter data Queries are made up of operators that are used to match on a variety of Tweet attributes. The search endpoints accept a single query with a GET request and return a set of historical Tweets that match the query.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |