How do I embed TikTok Videos?

I used the embed link that TikTok provides but it does not preview the video it just gives a link to the user account.
I’m wasn’t sure if it was in md format so I pasted the embed info into a HTML to md converter but same thing happened.
I have lots of TikToks to organize so I’m trying to make a template to import these and manually set tags for each.
Any help is appreciated

It would help if you could share such a link so that the people who see the post can try it out.

src="TIKTOK VIDEO URL" scrolling="no" 
style="height: 600px; border: 0px none; width: 550px; margin-top: -55px; margin-left: 5px; 
margin-right: 0px; ">

Seems to work ok, getting the url for the video via share/copy link rather than the embed option. Extra stuff gets added underneath, which is a bit annoying… How to Embed Tik Tok Videos Inside a html Web Page / WordPress / CMS - We Need Website

1 Like

Thank you for the code/tip!
This will work for now, I wonder if they’ll allow more customization with embedding in the future so no extra space around the video in the player.

I am referring to any TikTok generated link.
I’ll include share link as well as embed code below.
URL link:
Embed Link:
<blockquote class="tiktok-embed" cite="" data-video-id="6933443770679610629" style="max-width: 605px;min-width: 325px;" > <section> <a target="_blank" title="@littleqb" href="">@littleqb</a> <p>The loudest bird ever! 🕊 <a title="qbfax" target="_blank" href="">#qbfax</a> <a title="todayilearned" target="_blank" href="">#TodayILearned</a> <a title="bird" target="_blank" href="">#bird</a> <a title="nature" target="_blank" href="">#nature</a> <a title="littleqb" target="_blank" href="">#littleqb</a> 🕯</p> <a target="_blank" title="♬ original sound - 👈little qb👉" href="">♬ original sound - 👈little qb👉</a> </section> </blockquote> <script async src=""></script>

You can pull the raw video link and it displays only the video in the browser
but that only shows a loading video in Obsidian. Perhaps Tiktok blocks it somehow.

where do you get this link I didn’t find it anywhere

I openend the inspector and copied it from the html element.

thanks bro but that link also didn’t work in my react app I had to embed a tiktok video but it doesn’t show on screen

hey bro I fund the way which worked You had to install IDM and go to tiktok video after that you see a blue bar of IDM click on it then a box will pop up and there is a URL section copy the URL and past it where you want and it work great

Thank you for the code and suggestion!
For the time being, this would suffice; but, I’m curious whether they will enable further flexibility with embedding in the future, such that there is no additional space around the video in the player.

Why are you on TikTok at all? :smiley:

use this, should work on browser and mobile. Only the video no browser around it:

<div style="max-width: 56vh;"><div style="left: 0; width: 100%; height: 0; position: relative; padding-bottom: 177.7778%; padding-top: 120px;"><iframe src="" allow="fullscreen" style="position: absolute; top: 0px; left: 0px; height: 100%; width: 100%;"></iframe></div>

if you copy the link in the browser, the id past /video/<id> is after:

you can also just parse it out of a curl as well

curl | cut -d "." -f3 | cut -d "/" -f3

Can another Tiktok platform do the same?

Well, as far as I know, TikTok doesn’t currently support direct video embedding in markdown or HTML format. However, you can try using an iFrame to embed the Tik Tok video in your template. There are several tutorials on YouTube which can help you. I hope my advice will be helpful.