N8N Tools - X (Twitter) Enhanced icon

N8N Tools - X (Twitter) Enhanced

Comprehensive X (Twitter) API v2 integration for N8N workflows

Overview

This node provides an enhanced integration with the X (formerly Twitter) API v2, enabling a wide range of operations on Twitter resources within n8n workflows. Specifically for the Users resource and the Unmute User operation, it allows you to unmute a specified user by their user ID or username.

Use cases include:

  • Automatically unmuting users after a certain event or time period.
  • Managing user mutes programmatically in bulk workflows.
  • Integrating with other systems to control mute status based on external triggers.

Example: You could build a workflow that unmutes users who have been muted for more than 30 days, restoring communication channels automatically.

Properties

Name Meaning
User ID The target user's ID or @username to unmute.
Include Private Metrics Whether to include private metrics in responses (requires elevated access).
Custom Fields Comma-separated list of additional custom fields to include in the response.
Custom Expansions Comma-separated list of expansions to include in the response for richer data.

Output

The node outputs JSON data representing the result of the unmute operation. This typically includes confirmation details from the Twitter API about the unmute action performed on the specified user.

If multiple items are processed, the output is an array of such JSON objects, each corresponding to one input item.

No binary data output is produced by this operation.

Dependencies

  • Requires valid credentials for accessing the Twitter API via OAuth2 or API key authentication.
  • Requires a subscription and valid API key for the "N8N Tools API" service used for validation before making Twitter API calls.
  • The node uses an internal helper class to interact with Twitter's API endpoints.

Troubleshooting

  • Invalid subscription or API key error: If you receive an error indicating invalid subscription or API key, verify your N8N Tools API credentials and ensure your subscription is active.
  • User not found or invalid user ID: Ensure the provided User ID or username is correct and exists on Twitter.
  • Permission errors: Some operations may require elevated access or specific permissions on the Twitter developer account.
  • Rate limits: Twitter API enforces rate limits; if exceeded, wait and retry later.

Links and References

Discussion