Rules lookup
Returns rules from a user's active rule set. Users can fetch all of their rules or a subset, specified by the provided rule ids.
GET
/2/tweets/search/stream/rules
curl \
-X GET https://api.twitter.com/2/tweets/search/stream/rules \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"value": "coffee -is:retweet",
"tag": "Non-retweeted coffee tweets",
"id": "120897978112909812"
}
],
"meta": {
"sent": "string",
"summary": {
"created": 1,
"not_created": 1,
"valid": 1,
"invalid": 1
}
}
}
Response examples (200)
{
"data": [
{
"value": "coffee -is:retweet",
"tag": "Non-retweeted coffee tweets",
"id": "120897978112909812"
}
],
"meta": {
"sent": "string",
"summary": {
"created": 1,
"not_created": 1,
"valid": 1,
"invalid": 1
}
}
}
Response examples (default)
{
"code": 42,
"message": "string"
}
Response examples (default)
{
"code": 42,
"message": "string"
}