Authorizations
Body
application/json
- Option 1
- Option 2
curl --request POST \
--url https://api.x.com/2/tweets/search/stream/rules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"add": [
{
"tag": "Non-retweeted coffee Posts",
"value": "coffee -is:retweet"
}
]
}'{
"data": [
{
"id": "120897978112909812",
"tag": "Non-retweeted coffee Posts",
"value": "coffee -is:retweet"
}
],
"errors": [
{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}
],
"meta": {
"next_token": "<string>",
"result_count": 123,
"sent": "<string>",
"summary": {
"created": 1,
"invalid": 1,
"not_created": 1,
"valid": 1
}
}
}Adds or deletes rules from the active rule set for the filtered stream.
curl --request POST \
--url https://api.x.com/2/tweets/search/stream/rules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"add": [
{
"tag": "Non-retweeted coffee Posts",
"value": "coffee -is:retweet"
}
]
}'{
"data": [
{
"id": "120897978112909812",
"tag": "Non-retweeted coffee Posts",
"value": "coffee -is:retweet"
}
],
"errors": [
{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}
],
"meta": {
"next_token": "<string>",
"result_count": 123,
"sent": "<string>",
"summary": {
"created": 1,
"invalid": 1,
"not_created": 1,
"valid": 1
}
}
}Show child attributes