v1

latestOpenAPI 3.1.02026-07-26180242448.0 KB
Filter Rules

Validate filter rule query

Validate a Twitter Advanced Search query without creating a filter rule. Returns whether the query syntax is valid and any errors found. Use this to test queries before creating filter rules.

post/v1/twitter/stream/filter-rules/validate

Request body

querystring required

Twitter Advanced Search query to validate.

Example request

{
  "query": "from:elonmusk min_faves:100"
}

Response

Validation result.

validboolean

Whether the query syntax is valid.

querystring

The query that was validated.

errorstring nullable

Error message if the query is invalid.