v1
latestOpenAPI 3.1.02026-07-26180242448.0 KBFilter Rules
Create filter rule
Create a new filter rule that monitors Twitter using an Advanced Search query at a configurable polling interval. Matching tweets are delivered via WebSocket and optionally via webhook. Pricing is based on the polling interval tier.
post/v1/twitter/stream/filter-rules
Request body
Example request
{
"tag": "AI news tracker",
"query": "(\"artificial intelligence\" OR \"machine learning\") min_faves:100 lang:en",
"interval_seconds": 60,
"webhook_url": "https://example.com/webhooks/filter-rules"
}Response
Filter rule created successfully.
Example response
{
"tag": "AI news tracker",
"query": "(\"artificial intelligence\" OR \"machine learning\") min_faves:100 lang:en",
"interval_seconds": 60,
"max_results_per_poll": 20,
"pricing_tier": "1-minute"
}