X (Twitter) and Zapier connect to automate your presence on X (formerly Twitter). You can trigger Zaps from new posts and engagement and create posts, replies, and more from other apps.
Prerequisites
To use the X (Twitter) app on Zapier, you must have:
- An X account.
- A Zapier account.
- Access to the X API. The X API is paid per use; X bills you based on your API usage.
Find your X credentials
To connect, you need your own X Developer App.
- Go to the X Developer Portal and create an app or use an existing one.
- For a new app, set up User authentication settings. For an existing app, edit the settings in OAuth 2.0 Keys.
- Set the App Permissions to Read and Write and Direct Message.
- Set the App Type to Web App or Automated App or Bot.
-
Under App Info, add the following redirect URI to the app's
Callback URI or Redirect URL field:
https://zapier.com/dashboard/auth/oauth/return/App236443CLIAPI/ - Copy the Client ID and Client Secret from your app's Keys and Tokens page.
Connect X (Twitter) to Zapier
To create an app connection to X (Twitter) on Zapier:
- Go to the Apps page.
- Click + Add connection.
- A new dialog box will appear. Search for and select X (Twitter).
- Click Add connection.
- A Connect an Account page will open in a browser tab or window.
- Complete the following fields:
- Client ID: Enter your Client ID from the X Developer Portal.
- Client Secret: Enter your Client Secret from the X Developer Portal.
- Click Yes, Continue to X.
Your X (Twitter) account is now connected to Zapier.
About the X (Twitter) app
Triggers, searches, and actions
Triggers
- New Mention – Triggers when someone mentions you in a post on X.
- New Post from Query – Triggers when a new post matches your search query.
- New Post from User – Triggers when a specific user publishes a new post on X.
Searches
- Find Post – Find a post on X by its ID.
- Find User – Find a user on X by their username.
- Search Posts – Search for a recent post on X matching a query.
Actions
- Create Post – Create a new post on X.
- Follow User – Follow a user on X.
- Like Post – Like a post on X.
- Repost – Repost a post on X.
- API Request (Beta) – Advanced action that makes a raw HTTP request using this integration's authentication.
Limitations
- The X API enforces rate limits on how many requests you can make. Limits depend on your X API access level (Free, Basic, or Pro) and the endpoint. Most limits are per 15-minute window; some are per 24 hours. If you exceed a limit, the API returns an error and you must wait until the limit window resets before retrying. For exact limits per endpoint and plan, review Rate limits in the X Developer documentation.
- Each X developer app can only be used in a single app connection. This means if you attempt to create multiple app connections for a single X developer app, the previous app connections will be invalidated. Instead, you can share a single app connection.