ES | EN
Miscellaneous

Extract TikTok Usernames from Any Video or Creator Link Format

FormForm TriggerStop And Error
Nodes 18
Complexity Expert
Category Miscellaneous
n8n popularity 331 views in n8n library

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 }}".

Apps and nodes included

⚡ Open and edit in Scriflow ← Browse all n8n templates

Scriflow builds and adapts n8n workflows with AI. Open this template in the editor to get the import-ready JSON.