Trigger Social

Triggers when a new tweet matches your filter (username or keywords). Powered by TwitterAPI.io Search API polling.

At a Glance

FieldValue
Trigger IDx-new-tweet
CategorySocial
Tagstwitter, x, social, tweet, polling

Trigger Configuration

FieldTypeRequiredDescription
usernamestringNoTwitter username to monitor (without @). Only tweets from this user will trigger.
keywordsarrayNoKeywords to match (OR logic). Any tweet containing at least one keyword will trigger.
intervalSecondsintegerNoPolling interval in seconds. Lower = faster detection but more API credits.

Trigger Result

FieldTypeRequiredDescription
triggeredAtstringYesTimestamp when the tweet was detected (UTC, RFC3339 format)
ruleTagstringNoTwitterAPI.io rule tag (workflow ID)
tweetIdstringNoUnique tweet ID
tweetUrlstringNoURL to the tweet
textstringNoFull text content of the tweet
createdAtstringNoWhen the tweet was posted (RFC3339)
langstringNoLanguage code of the tweet (e.g. 'en')
conversationIdstringNoConversation thread ID
likeCountnumberNoNumber of likes
retweetCountnumberNoNumber of retweets
replyCountnumberNoNumber of replies
quoteCountnumberNoNumber of quote tweets
viewCountnumberNoNumber of views
isReplybooleanNoWhether this tweet is a reply to another tweet
inReplyToUsernamestring | nullNoUsername of the user being replied to (if isReply is true)
authorIdstringNoAuthor's Twitter user ID
authorUsernamestringNoAuthor's Twitter username (without @)
authorNamestringNoAuthor's display name
authorProfilePicturestringNoURL to the author's profile picture
authorIsBlueVerifiedbooleanNoWhether the author has a blue verified checkmark
authorFollowersnumberNoNumber of followers the author has
hasMediabooleanNoWhether the tweet contains media (photo/video/gif)
mediaTypestringNoType of media attached (e.g. 'photo', 'video', 'animated_gif')
mediaUrlstringNoURL of the attached media
hasQuotedTweetbooleanNoWhether the tweet quotes another tweet
quotedTweetUrlstringNoURL of the quoted tweet (if hasQuotedTweet is true)
quotedTweetTextstringNoText of the quoted tweet (if hasQuotedTweet is true)
hashtagsarrayNoHashtags extracted from the tweet entities
userMentionsarrayNoUser mentions extracted from the tweet entities
urlsarrayNoURLs extracted from the tweet entities

Workflow Root Example

json
{ "nodes": { "root": { "type": "x-new-tweet", "payload": { "username": "example-username", "keywords": [], "intervalSeconds": 300 }, "children": [ "log_event" ] }, "log_event": { "type": "log", "payload": { "message": "Triggered at {{$trigger.triggeredAt}}" }, "children": [] } }}

Downstream nodes can use {{$trigger.triggeredAt}} and any result fields listed above. Event triggers usually expose the raw source payload under a field such as event, body, trade, or raw.

Ask a question... ⌘I