Use this powerful n8n workflow to reliably extract the creator's username from any TikTok video or profile link format, including short URLs. A highly useful n8n template for reliable data extraction.
Download this n8n workflow template and start using it instantly.
Handling social media links can be tricky, especially when mobile apps generate shortened or highly parameterized URLs that obscure the essential data, like the creator's username. This robust n8n workflow solves this by reliably resolving complex TikTok links, including those starting with vm.tiktok.com. The process leverages the n8n HTTP Request node to effectively 'unfold' the redirect, capturing the full canonical URL. Once the canonical URL is secured, a precise regular expression is applied within a Set n8n node to extract the exact username handle (without the '@' symbol). This ensures the resulting data is clean and actionable, providing a powerful n8n template for accurate social media data retrieval.
This efficient n8n workflow follows a multi-stage validation and resolution process:
On form submission n8n trigger starts the process when a user inputs a TikTok link.If invalid TikTok link n8n node checks if the input link is missing the word 'tiktok'. If invalid, the workflow stops and notifies the user.If final TikTok link n8n node determines if the input link already contains the '@' symbol, which suggests it is a direct or canonical link.Get final link of TikTok video n8n node executes an HTTP request configured specifically to capture the redirection data. The subsequent Extract final TikTok video link n8n node then parses the response data using regex to retrieve the canonical URL.Extract username of TikTok creator/video link n8n node uses a specific regex (/@([^/?]+)//) on the resolved link to isolate the creator's username, ensuring the n8n workflow retrieves clean data.If the username is null n8n node ensures the extraction was successful. If so, the Display the creator's username n8n node presents the retrieved username back to the user via the form interface, confirming the success of the n8n workflow.On form submission n8n trigger. After activating the workflow, open the trigger n8n node and use the provided form URL to test the automation. On form submission (n8n trigger): Serves as the starting point, initiating the entire n8n workflow based on user input of the TikTok creator/video link:.
If invalid TikTok link & If final TikTok link (If n8n node): These powerful flow control n8n nodes manage conditional logic, validating the link structure and determining if URL resolution via HTTP is necessary.
Get final link of TikTok video (HTTP Request n8n node): Crucial for link normalization. It fetches the short link while configured to not follow redirects, allowing the n8n workflow to analyze the response for the full canonical URL.
Extract final TikTok video link (Set n8n node): Uses regular expressions on the HTML data returned by the previous n8n node to isolate the full, canonical TikTok URL.
Extract username of TikTok creator/video link (Set n8n node): Performs the final data manipulation, applying a specific regex pattern (/@([^/?]+)//) to extract only the creator's handle from the clean URL data. This is a core data processing step in this n8n template.
Display the creator's username (Form n8n node): Provides the final output, displaying the successfully extracted username back to the user.
Use this n8n workflow to automate the extraction of transaction details from Thai bank slip images received via LINE using SpaceOCR, saving structured data directly to Google Sheets for accounting.

Use this powerful n8n workflow to automate receipt and table data extraction using OCR.space. This n8n templates guide explains the n8n trigger and data processing logic for accurate digitization.

Automate Optical Character Recognition (OCR) and text cleanup using an n8n workflow triggered by Telegram images. This n8n template uses AI agents for polished, readable output.

Automate timesheet processing using this advanced n8n workflow. It combines Google Drive file handling, multimodal OCR (Mistral AI), AI Agents for structured data output, and Gmail for critical human verification steps.

Use this powerful n8n workflow template to automate advanced data extraction: crawl website URLs, capture screenshots, and utilize GPT-4o for smart product analysis and structured data output to Google Sheets.








































