Extract TikTok Usernames from Any Video or Creator Link Format
What's the problem?
Imagine you want to automate a task where, based on a TikTok video link, you must retrieve the username of the creator of that video.
Many people may think that it's enough to get the "@" part of the link but that's not the case always. TikTok's iOS and Android app have specific link formats that are easier to share with others but, at the same time, it makes our task of retrieving creators way harder.
Our solution:
In solution to this problem, this simple workflow makes a HTTP protocol request to retrieve the original link of the video hosted on www.tiktok.com instead of the default mobile app's subdomain vm.tiktok.com. Then, we can in fact remove the attributes of the link and extract the handle correctly.
Good things to know:
Note that we extract the username (and not the profile's nickname) without the "@".
Once we have our username, we can simply access to their profile from then on using "https://www.tiktok.com/@{{ $json.username }}".
Related Templates
AI Agent: Scrape, Summarize & Save Articles to Notion (Gemini, Browserless)
This n8n workflow automates the process of saving web articles or links shared in a chat conversation directly into a No...
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
Send structured logs to BetterStack from any workflow using HTTP Request
Send structured logs to BetterStack from any workflow using HTTP Request Who is this for? This workflow is perfect for...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments