Extract and Merge Twitter Threads using TwitterAPI.io
## Twitter Thread Fetcher: Extract and Merge Tweets from Threads ### What it does - **Thread Detection:** Automatically detects whether the provided Twitter link is a single tweet or a thread. - **Tweet Extraction:** Fetches and returns the content of a single tweet, or gathers all tweets in a thread by retrieving the first tweet and all connected replies. - **Thread Merging:** Merges all tweets in the correct order to reconstruct the complete thread, filtering out any empty results. - **Seamless Integration:** Easily trigger this workflow from other n8n workflows to automate Twitter thread extraction from various sources. ### How it works - Accepts a Twitter link as input—either a single tweet or a thread. - If the link is for a single tweet, fetches and returns the tweet content. - If the link is for a thread, fetches the first tweet, then iteratively retrieves all connected replies that form the thread, ensuring only relevant tweets are included. - Merges the first tweet and all subsequent thread tweets in order, filters out any empty results, and returns the complete thread. - Uses [twitterapi.io](https://twitterapi.io) for all Twitter API requests. ### Set up steps - Setup typically takes just a few minutes. You'll need to configure your Twitter API credentials for [twitterapi.io](https://twitterapi.io). - You can trigger this workflow manually for testing or call it from another workflow to automate thread fetching from sources like Notion, spreadsheets, or other platforms. - For best results, create a separate workflow to gather Twitter links from your preferred source, then trigger this workflow to fetch and return the full thread. > Detailed configuration instructions and node explanations are included as sticky notes within the workflow canvas. ### Benefits - **Light speed:** Fetches a 15-tweet thread in just **3 seconds** for rapid results. - **Cost-effective:** Processes a **15-tweet thread** for only **$0.0027**, making it highly affordable. *(Cost may vary depending on the density of replies in the thread.)*
- Platform
- n8n
- Category
- Social Media
- Price
- $14.99
- Creator
- enes cingoz
- code
- noOp
- merge
- filter
- function
- stickyNote
- httpRequest
- manualTrigger
- executeWorkflowTrigger
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Social Media workflows
- Generate & Auto-Post AI Videos to Social Media with Veo3 and Blotato$14.99
- Automate AI-Driven Social Media Content Creation and Publishing$24.99
- Automate Viral TikTok Cloning and Multi-Platform Posting with AI$19.99
- Automate LinkedIn Content Creation and Publishing via Email with AI$24.99
- Automate Social Media Posts Using Google Trends and AI$14.99
- Automate Video Captioning and Posting to Instagram and TikTok$14.99
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.