POST
/
oapi
/
tweet_filter
/
add_rule
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>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
tag
string
required

Custom tag to identify the rule.Must be set.Max length is 255

value
string
required

Rule to filter tweets.eg "from:elonmusk OR from:kaitoeasyapi".Must be set.Max length is 255

interval_seconds
number
required

Interval to check tweets.Must be set.Min value is 100.Max value is 86400 ()

Response

200
application/json
Tweet filter rule add response
rule_id
string
required

ID of the added rule

status
enum<string>
required

Status of the request.success or error

Available options:
success,
error
msg
string
required

Message of the request.error message