Twitter

The Twitter modules allow you to monitor, search, create, list, or delete tweets; monitor and list retweets; watch and list followers; manage favorites; watch, send, list, and delete messages; manage lists and mentions; and also search users in your Twitter account.

Getting Started with Twitter

Prerequisites

  • A Twitter account
  • Integromat paid pricing plan. Twitter is a premium app. Therefore it is not available for users using the FREE pricing plan.
To get access to premium modules, upgrade to any of our paid plans, starting at $9 per month.

In order to use Twitter with Integromat, it is necessary to have a Twitter account. If you do not have one, you can create a Twitter account at twitter.com/signup.

The module dialog fields that are displayed in bold (in the Integromat scenario, not in this documentation article) are mandatory!

Connecting Twitter to Integromat

To connect your Twitter account to Integromat follow the general instructions for Connecting to services.

After you click the Continue button, Integromat will redirect you to the Twitter website where you will be prompted to grant Integromat access to your account.

Do not forget to check the Follow Integromat for news checkbox to stay up to date with new Integromat features. 

2019-10-14_10_32_58-Twitter___Authorize_an_application.png

Confirm the dialog by clicking the Authorize app button.

You may need to unlock your account first.

2019-10-14_11_10_39-2019-10-14_10_28_29-https___twitter.com_account_access.pngFollow the instructions from Twitter and grant Integromat access (above) after the unlocking process is completed.

Tweet

Watch Tweets

Retrieves tweet details when a new tweet is posted.

ConnectionEstablish a connection to your Twitter account.
I want to watchSelect whether you want to watch your own tweets or someone else's tweets.
Screen nameEnter the screen name of the Twitter user you want to watch for new tweets, e.g.integromat.
Prevent replies from appearing in the returned timelineIf this option is enabled, replies to the tweet will not be returned.
Include retweetsRetweets are excluded by default. Enabling this will also allow you to return retweets by this module.
LimitSet the maximum number of tweets Integromat will return during one execution cycle.

Search Tweets

This action allows you to search for Tweets that match the given criteria. You can get a maximum of the last 100 tweets. The search results are limited to Tweets from the past 7 days.

ConnectionEstablish a connection to your Twitter account.
Search phrase

Enter the search term. You can use search operators.

For detailed information on search possibilities, see the 'Standard search operators' section in the Twitter Rules and filtering API Documentation.

Supported Search Operators (see the list of operators in the 'Standard search operators' section in the Twitter Rules and filtering API Documentation)

OperatorFinds Tweets...
watching nowcontaining both “watching” and “now”; this is the default operator.
“happy hour”containing the exact phrase “happy hour”.
love OR hatecontaining either “love” or “hate” (or both).
beer -rootcontaining “beer” but not “root”.
#haikucontaining the hashtag “haiku”.
from:interiorsent from Twitter account “interior”.
list:NASA/astronauts-in-space-nowsent from a Twitter account in the NASA list astronauts-in-space-now.
to:NASAa Tweet authored in reply to Twitter account “NASA”.
@NASAmentioning Twitter account “NASA”.
politics filter:safecontaining “politics” with Tweets marked as potentially sensitive removed.
puppy filter:mediacontaining “puppy” and an image or video.
puppy -filter:retweetscontaining “puppy”, filtering out retweets.
puppy filter:native_videocontaining “puppy” and an uploaded video, Amplify video, Periscope, or Vine.
puppy filter:periscopecontaining “puppy” and a Periscope video URL.
puppy filter:vinecontaining “puppy” and a Vine.
puppy filter:imagescontaining “puppy” and links identified as photos; including third parties such as Instagram.
puppy filter:twimgcontaining “puppy” and a pic.twitter.com link representing one or more photos.
hilarious filter:linkscontaining “hilarious” and linking to URL.
puppy url:amazoncontaining “puppy” and a URL with the word “amazon” anywhere within it.
superhero since:2015-12-21containing “superhero” and sent since date “2015-12-21” (year-month-day).
puppy until:2015-12-21containing “puppy” and sent before the date “2015-12-21”.
movie -scary :)containing “movie”, but not “scary”, and with a positive attitude.
flight :(containing “flight” and with a negative attitude.
traffic ?containing “traffic” and asking a question.
LimitSet the maximum number of tweets Integromat will return during one execution cycle.
Sort by

Select the type of search results you want to receive.

 mixed: Includes both popular and real-time results in the response.

 recent: returns only the most recent results in the response.

 popular: returns only the most popular results in the response.

LanguageEnter the ISO 639-1 code (2 characters) to restrict tweets to the desired language.
UntilEnter the date to return tweets posted before the date. Use the YYYY-MM-DD format.
Geographical Coordinates

Returns tweets by users located within an entered radius of the specified latitude/longitude.

Include Entities

Enable this option to include entities in the result. For more information about entities please refer to the Twitter Entities documentation.

Create a Tweet

Posts a status message on Twitter.

ConnectionEstablish a connection to your Twitter account.
StatusEnter the content of your Twitter post. Max 280 characters.
Upload

Select whether you want to upload video or images file.

Source File

Map the file you want to upload from the previous module (e.g. HTTP > Get a File or Google Drive > Download a File), or enter the file name and file data manually.

Attachments

Use the Add item button to attach an image, video, or GIF file.
Select the Media Category that represents how the media will be used.

Size restrictions for uploading:

  • Image 5MB
  • GIF 15MB
  • Video 15MB
Attached images contain sensitive content (nudity, violence, etc).Enable this option if you upload Tweet media that might be considered sensitive content such as nudity, or medical procedures.
Geographic LatitudeEnter the latitude of the location this Tweet refers to. This parameter will be ignored unless it is inside the range -90.0 to +90.0 (North is positive) inclusive.
Geographic LongitudeEnter the longitude of the location this Tweet refers to. The valid ranges for longitude are -180.0 to +180.0 (East is positive) inclusive.
Display tweets coordinatesEnable this option to put a pin on the exact coordinates a Tweet has been sent from.

List User Tweets

Returns tweets of a specified user.

ConnectionEstablish a connection to your Twitter account.
Screen nameEnter the screen name of the Twitter user whose tweets you want to retrieve, e.g. integromat.
Prevent replies from appearing in the returned timelineIf this option is enabled, replies to the tweet will not be returned.
Include retweetsRetweets are excluded by default. Enable this option to also return retweets by this module.
LimitSet the maximum number of tweets Integromat will return during one execution cycle.

Get a User Tweet

Retrieves a specified tweet.

ConnectionEstablish a connection to your Twitter account.
Tweet IDEnter (map) ID of the tweet you want to retrieve details about.
Include EntitiesEnable this option to include entities in the result. For more information about entities please refer to the Twitter Entities documentation.
Include Extra Alternative TextIf alt text has been added to any attached media entities, this parameter will return its value in the top-level key for the media entity. 
Include My TweetEnable this option to include an additional current_user_retweet node, containing the ID of the source status for the retweet to any Tweets returned that have been retweeted by the authenticating user.
Include Card URIEnable this option to include a card_uri attribute when there is an ads card attached to the Tweet and when that card was attached using the card_uri value.

Delete a Tweet

Deletes a specified tweet.

ConnectionEstablish a connection to your Twitter account.
Tweet IDSelect or enter (map) the ID of the tweet you want to delete.

Retweet

Watch Retweets

Retrieves tweet details when a tweet has been retweeted.

ConnectionEstablish a connection to your Twitter account.
Tweet IDSelect or enter (map) the ID of the tweet you want to watch for retweets.
LimitSet the maximum number of retweets Integromat will return during one execution cycle.

List Retweets/Retweeters

Returns retweets of a specified tweet or user IDs of users who retweeted the tweet.

ConnectionEstablish a connection to your Twitter account.
ListSelect whether you want to list retweets or retweeters of the specified tweet or your retweets. 
Tweet IDSelect or enter (map) ID of the tweet you want to return retweets or retweeters for.
LimitSet the maximum number of retweets/retweeters Integromat will return during one execution cycle.

Retweet/Unretweet a Tweet

ConnectionEstablish a connection to your Twitter account.
ChooseSelect whether you want to retweet or unretweet the tweet specified below.
Tweet IDSelect or enter (map) the ID of the tweet you want to retweet or unretweet.

Follower

Watch Followers

This module is not available anymore. Use a template to store followers in a data store and add new followers to it on a regular basis: Save new followers from Twitter to Data store.

List Followers

Retrieves followers of a specified user.

ConnectionEstablish a connection to your Twitter account.
List FollowersSelect whether you want to list followers by Screen Name or by User ID
Screen NameEnter the screen name of the Twitter user whose followers you want to retrieve, e.g. integromatIf the field is left empty, only your followers will be returned.
User IDEnter (map) the ID of the user whose followers you want to retrieve. If the field is left empty, only your followers will be returned.
LimitSet the maximum number of followers Integromat will return during one execution cycle.
Skip StatusIf you enable this option, the Status collection will not be returned in the result. Status contains information about the user's latest tweet.
Include User EntitiesEnable this option to include entities in the result.

Please find the descriptions of the fields in the Watch Followers section above.

Favorite

Watch Likes

Retrieves like details when you or a specified user likes the tweet.

ConnectionEstablish a connection to your Twitter account.
List LikesSelect whether you want to list likes by Screen Name or by User ID
Screen NameEnter the screen name of the Twitter user whose likes you want to retrieve, e.g. integromat. If the field is left empty, only your likes will be returned.
User IDEnter (map) the ID of the user whose likes you want to retrieve. If the field is left empty, only your likes will be returned.
LimitSet the maximum number of likes Integromat will return during one execution cycle.
Include EntitiesEnable this option to include entities in the result.

List Likes

Returns the 20 most recent Tweets liked by you or a specified user.

Please find the descriptions of the fields in the Watch likes section above.

Like/Unlike a Tweet

Likes or unlikes a specified Tweet. Returns the liked Tweet when successful.

ConnectionEstablish a connection to your Twitter account.
Choose ToSelect whether you want to like or unlike the Tweet.
(Unliked) Tweet IDEnter (map) or select the ID of the Tweet you want to like or unlike.
Include EntitiesEnable this option to include entities in the result.

Message

Watch Messages

Retrieves message details when you receive a new message.

ConnectionEstablish a connection to your Twitter account.
LimitSet the maximum number of messages Integromat will return during one execution cycle.

Send a Message

Sends a direct message to a specified user.

ConnectionEstablish a connection to your Twitter account.
User IDEnter (map) the ID of the user you want to send a message to. Retrieve the ID, for example, using the Search Users or List Pending Followers Requests modules.
Message TextEnter the text content of the direct message.

List Messages

Returns all messages (both sent and received) within the last 30 days. Sorted in reverse-chronological order.

ConnectionEstablish a connection to your Twitter account.
LimitSet the maximum number of messages Integromat will return during one execution cycle.

Get a Message

Retrieves message details.

ConnectionEstablish a connection to your Twitter account.
Message IDEnter the ID of the message you want to retrieve details about.

Delete a Message

Deletes a message.

ConnectionEstablish a connection to your Twitter account.
Message IDEnter (map) or select the message you want to delete.

List

Watch Tweets in List

Returns tweet details when a new tweet is created on a specified list.

ConnectionEstablish a connection to your Twitter account.
Search ListSelect whether you want to identify the list by a slug or by the list ID. If you decide to identify the list by a slug, you'll also have to specify the list owner.
List IDEnter (map) or select the list you want to watch for tweets.
SlugEnter the list slug. 
Select UserSelect whether you want to identify the user by User ID or by the Screen Name.
Include EntitiesEnable this option to also return entities. Entities are a variety of metadata about the tweet in a discreet structure, including: user_mentions, URLs, and hashtags. 
Include RetweetsEnable this option to also return native retweets (if they exist) in addition to the standard stream of tweets.
LimitSet the maximum number of tweets Integromat will return during one execution cycle.

Add a Member to a List

Adds a member to a list. You must own the list to be able to add members to it.

ConnectionEstablish a connection to your Twitter account.
List IDEnter (map) or select the list you want to add a member to.
Get UserSelect whether you want to identify the user by User ID or by the Screen Name

List Lists

Returns all lists you or the specified user subscribes to, including their own.

ConnectionEstablish a connection to your Twitter account.
List ListsSelect whether you want to identify the user by ID or by the screen name.
User ID/Screen NameEnter (map) the User ID or the Screen Name of the user that subscribed to the lists the module will return. Leave the field blank to return only your lists.
ReverseEnable this option to return owned lists first.
LimitSet the maximum number of lists Integromat will return during one execution cycle.

Mention

Watch Mentions

Returns tweet details when you are mentioned in a tweet.

ConnectionEstablish a connection to your Twitter account.
LimitSet the maximum number of tweets Integromat will return during one execution cycle.

List Mentions

Returns the 20 most recent mentions.

ConnectionEstablish a connection to your Twitter account.
LimitSet the maximum number of mentions Integromat will return during one execution cycle.

User

Get a User

Retrieves user details.

ConnectionEstablish a connection to your Twitter account.
Get UserSelect whether you want to identify a user by their User ID or by the Screen Name
User ID / Screen NameEnter (map) the user ID or screen name of the user you want to retrieve details about.

Search Users

Provides a simple, relevance-based search interface to public user accounts on Twitter. Try searching by topical interest, full name, company name, location, or other criteria. Exact match searches are not supported.

ConnectionEstablish a connection to your Twitter account.
Search PhraseEnter the search term.
LimitSet the maximum number of results Integromat will return during one execution cycle.

Update a Profile Image

Allows you to change your profile picture.

ConnectionEstablish a connection to your Twitter account.
Source fileMap the file you want to upload from the previous module (e.g. HTTP > Get a File or Google Drive > Download a File), or enter the file name and file data manually.

2019-10-16_14_33_30-Integration_Dropbox__Twitter___Integromat.png

Other

Make an API Call

Allows you to perform a custom API call.

ConnectionEstablish a connection to your Twitter account.
URL

Enter a path relative to https://api.twitter.com. E.g. /1.1/statuses/home_timeline.json

For the list of available endpoints, refer to the Twitter Developer Docs.
Method

Select the HTTP method you want to use:

GET
to retrieve information for an entry.

POST
to create a new entry.

PUT
to update/replace an existing entry.

PATCH
to make a partial entry update.

DELETE
to delete an entry.

HeadersEnter the desired request headers. You don't have to add authorization headers; we already did that for you.
Query StringEnter the request query string.
BodyEnter the body content for your API call.

Example of Use - List Home Tweets

The following API call returns the most recent Tweets and Retweets posted by you and the users you follow:

URL: /1.1/statuses/home_timeline.json

2019-10-16_14_47_49-Integration_Twitter___Integromat.png

Matches of the search can be found in the module's Output under Bundle > Body
In our example, 19 Tweets were returned:

2019-10-16_14_49_27-Integration_Twitter___Integromat.png

List Pending Followers Requests

Returns user IDs of every user following the authenticated user.

This module is especially powerful when used in conjunction with Make an API Call > GET /1.1/users/lookup.json, a method that allows you to convert user IDs into full user objects in bulk.
ConnectionEstablish a connection to your Twitter account.
LimitSet the maximum number of followers Integromat will return during one execution cycle.

 

Common problems

Access to earlier tweets and messages

The Twitter triggers can only process a limited number of the most recent tweets and messages.

  • The Watch tweets and Watch retweets triggers can process up to 3,200 of the most recent tweets.
  • The Watch messages and Watch favorite tweets triggers can process up to 200 of the most recent tweets.
  • The trigger Watch mentions can process up to 800 of the most recent tweets.
  • The search module Search tweets allows to search for tweets that are up to one week old.

Earlier tweets and messages are ignored.

Processing is terminated with a 429: Rate limit exceeded error

Twitter allows every user to send a limited number of requests per a 15- minute interval from their account. If a user exceeds this limit, Twitter returns a 429 Rate limit exceeded error. If this happens, wait until the quota is renewed and run your scenario again.

The number of requests made when executing a scenario differs depending on the trigger used and the number of Tweets Integromat has to go through.

Popular use cases from our blog

automated-data-collection-crm-illustration

How to Automate Data Collection - Part 5: CRM Systems

automated-data-collection-chatbot-marketing-illustration

How to Automate Data Collection - Part 4: Chatbot Marketing

automated-data-collection-paid-ads-illustration

How to Automate Data Collection - Part 3: Paid Ads

automated-data-collection-email-illustration

How to Automate Data Collection - Part 2: Email Marketing Segmentation

personalized-customer-experience-illustration-integromat

5 Automated Solutions to Personalize Customer Experience

data-collection-automation-forms-pt-1

How to Automate Data Collection - Part 1: Online Forms

Didn’t find what you were looking for?

Expert

Find an expert

We feature a network of 450+ certified partners across the globe who are ready to help

Find an expert

Automate any workflow in your business

Sign up for a free account today. No credit card required, no time limits on free plan.