Skip to content
For LLMsView as Markdown·

Twitter (X)

Post tweets, search, manage users and followers via the Twitter/X API v2.

DetailValue
CategorySocial Media
Base URLhttps://api.twitter.com/2
AuthenticationOAuth2
Endpoints6
Connector keytwitter

Using Twitter (X) in a workflow

  1. Go to Connections and click New Connection.
  2. Pick Twitter (X) from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
POST /tweetsCreate a tweet
GET /tweets/{tweetId}Get a tweet
GET /tweets/search/recentSearch recent tweets
GET /users/meGet authenticated user
GET /users/{userId}/tweetsGet user tweets
GET /users/{userId}/followersGet followers

Each endpoint is documented in full below. Use the outline on the right to jump to one.

POST /tweets

Create a tweet

DetailValue
Operation IDsocial.createTweet
MethodPOST
Path/tweets

Parameters

No parameters.

Request Body

FieldType
textstring

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Twitter (X) connection from the Connection dropdown.
  3. In the Operation dropdown, select social.createTweet.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Twitter (X) API reference.

GET /tweets/{tweetId}

Get a tweet

DetailValue
Operation IDsocial.getTweet
MethodGET
Path/tweets/{tweetId}

Parameters

NameLocationTypeRequired
tweetIdpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Twitter (X) connection from the Connection dropdown.
  3. In the Operation dropdown, select social.getTweet.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Twitter (X) API reference.

GET /tweets/search/recent

Search recent tweets

DetailValue
Operation IDsocial.searchTweets
MethodGET
Path/tweets/search/recent

Parameters

NameLocationTypeRequired
queryquerystringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Twitter (X) connection from the Connection dropdown.
  3. In the Operation dropdown, select social.searchTweets.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Twitter (X) API reference.

GET /users/me

Get authenticated user

DetailValue
Operation IDsocial.getMe
MethodGET
Path/users/me

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Twitter (X) connection from the Connection dropdown.
  3. In the Operation dropdown, select social.getMe.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Twitter (X) API reference.

GET /users/{userId}/tweets

Get user tweets

DetailValue
Operation IDsocial.getUserTweets
MethodGET
Path/users/{userId}/tweets

Parameters

NameLocationTypeRequired
userIdpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Twitter (X) connection from the Connection dropdown.
  3. In the Operation dropdown, select social.getUserTweets.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Twitter (X) API reference.

GET /users/{userId}/followers

Get followers

DetailValue
Operation IDsocial.getFollowers
MethodGET
Path/users/{userId}/followers

Parameters

NameLocationTypeRequired
userIdpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Twitter (X) connection from the Connection dropdown.
  3. In the Operation dropdown, select social.getFollowers.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Twitter (X) API reference.