Rules lookup
GET
/2/tweets/search/stream/rulesReturns rules from a user's active rule set. Users can fetch all of their rules or a subset, specified by the provided rule ids.
Request
Query Params
ids
array[string]
optional
A comma-separated list of Rule IDs.
Request samples
Responses
The request was successful(200)
500(500)
The request was successful
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
array[object (Rule) {3}]
required
id
string
optional
Unique identifier of this rule.
Example:
120897978112909812
Match pattern:
^[0-9]{1,19}$
tag
string
optional
A tag meant for the labeling of user provided rules.
Example:
Non-retweeted coffee tweets
value
string
required
The filterlang value of the rule.
Example:
coffee -is:retweet
meta
object (RulesResponseMetadata)
required
sent
string
required
summary
RulesRequestSummary
Example
{
"data": [
{
"id": "120897978112909812",
"tag": "Non-retweeted coffee tweets",
"value": "coffee -is:retweet"
}
],
"meta": {
"sent": "string",
"summary": {
"created": 1,
"invalid": 1,
"not_created": 1,
"valid": 1
}
}
}
Last modified: 2 years ago