Search Tweets
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.
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
| Field | Value |
|---|---|
| Action ID | x-search-tweets |
| Category | Social |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | social, twitter, x, tweets, search, read |
Payload Schema
| Field | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query using Twitter advanced search syntax (e.g., 'from:elonmusk', '#crypto', 'bitcoin OR ethereum') |
queryType | string | No | Result type: 'Latest' for chronological order, 'Top' for most engaged tweets. Default: 'Latest' |
cursor | string | null | No | Pagination 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
| Field | Type | Required | Description |
|---|---|---|---|
status | string | Yes | 'success' or 'error' |
tweets | array | Yes | Array of tweet objects matching the search query |
totalResults | number | Yes | Number of tweets returned in this response |
hasNextPage | boolean | Yes | Whether more results are available via pagination |
nextCursor | string | null | No | Cursor to use in the next request for the following page, or null if no more results |
error | string | No | Error message if status is 'error' |
Examples
json{ "type": "x-search-tweets", "payload": { "query": "status:open" }, "children": []}
bashcurl -X POST "https://api.b3os.org/v1/actions/x-search-tweets/test" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "query": "status:open" }}'
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.
