Templates / Extract TikTok usernames from any video or creator link format

Extract TikTok usernames from any video or creator link format

Ready for 3.0

by Dot · 416 views · created 2025-10-28 · Miscellaneous

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (6)

What it does

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

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.