Short answer
Call /v1/video/no-watermark with the TikTok link; the response has play_url_no_watermark, the source video without the overlay. Fetch that URL and save it. For photo posts, /v1/video/slideshow returns every image and the audio. Each call is 1 req.
Python
download.py
import os, requests
API = "https://api.tikultra.com"
HEADERS = {"x-api-key": os.environ["TIKULTRA_API_KEY"]}
def get(path, **params):
r = requests.get(API + path, headers=HEADERS, params=params, timeout=60)
r.raise_for_status()
return r.json()
def download(link):
v = get("/v1/video/no-watermark", url=link)
data = requests.get(v["play_url_no_watermark"], timeout=120).content
path = f"{v['aweme_id']}.mp4"
with open(path, "wb") as f:
f.write(data)
return path
print(download("https://www.tiktok.com/@tiktok/video/7693184538704416031"))Node.js
download.mjs
import { writeFile } from 'node:fs/promises'
const link = 'https://www.tiktok.com/@tiktok/video/7693184538704416031'
const res = await fetch(`https://api.tikultra.com/v1/video/no-watermark?url=${encodeURIComponent(link)}`, {
headers: { 'x-api-key': process.env.TIKULTRA_API_KEY },
})
const v = await res.json()
const file = await fetch(v.play_url_no_watermark)
await writeFile(`${v.aweme_id}.mp4`, Buffer.from(await file.arrayBuffer()))Short links and slideshows
vm.tiktok.comandvt.tiktok.comlinks work directly;/v1/resolveturns any link into typed IDs if you need them first.- Photo posts have no video file.
/v1/video/slideshowreturns each image at full size and the audio track. - Media URLs expire after a while, so download right away instead of storing the URL.
Building a bot
A Discord or Telegram bot that answers pasted links needs exactly this call. At 1,000 links a day it uses 1,000 requests, about $0.91 a day on Growth, and links that fail cost nothing.
Try it without signing upPaste a link in the free browser tool, then copy the API call.
Free TikTok tools