cURL
curl --request POST \ --url https://api.twitterapi.io/oapi/tweet_filter/add_rule \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "tag": "<string>", "value": "<string>", "interval_seconds": 123 }'
{ "rule_id": "<string>", "status": "success", "msg": "<string>" }
Add a tweet filter rule. Default rule is not activated.You must call update_rule to activate the rule.
Custom tag to identify the rule.Must be set.Max length is 255
Rule to filter tweets.eg "from:elonmusk OR from:kaitoeasyapi".Must be set.Max length is 255
Interval to check tweets.Must be set.Min value is 100.Max value is 86400 ()
Tweet filter rule add response
ID of the added rule
Status of the request.success or error
success
error
Message of the request.error message