Search Tweets logo

Catalog action Social

Search tweets using Twitter/X advanced search syntax. Supports Latest and Top result types. Returns tweet data including text, author, engagement metrics, and media. Paginated with cursor. Ideal for: monitoring keywords, tracking conversations, content discovery, sentiment analysis.

At a Glance

FieldValue
Action IDx-search-tweets
CategorySocial
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagssocial, twitter, x, tweets, search, read

Payload Schema

FieldTypeRequiredDescription
querystringYesSearch query using Twitter advanced search syntax (e.g., 'from:elonmusk', '#crypto', 'bitcoin OR ethereum')
queryTypestringNoResult type: 'Latest' for chronological order, 'Top' for most engaged tweets. Default: 'Latest'
cursorstring | nullNoPagination cursor from a previous response to retrieve the next page of results. 'null' is treated the same as omitting the field — useful for round-tripping 'nextCursor' from a prior response without extra conditional logic.

Result Schema

FieldTypeRequiredDescription
statusstringYes'success' or 'error'
tweetsarrayYesArray of tweet objects matching the search query
totalResultsnumberYesNumber of tweets returned in this response
hasNextPagebooleanYesWhether more results are available via pagination
nextCursorstring | nullNoCursor to use in the next request for the following page, or null if no more results
errorstringNoError message if status is 'error'

Examples

json
{ "type": "x-search-tweets", "payload": { "query": "status:open" }, "children": []}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I