Python Integration
Python TikTok API
The easiest way to post videos to TikTok using Python. Scale your content distribution with a single API call.
Upload MP4 / MOV
Privacy controls
Schedule for later
Analytics tracking
example.py
import requests
url = "https://api.xenonflare.com/media/videos"
payload = {
"video_url": "https://cdn.xenonflare.com/v/video.mp4",
"platforms": ["tiktok"],
"tiktok": { "privacy": "PUBLIC_TO_EVERYONE" }
}
headers = {"X-API-Key": "YOUR_KEY"}
response = requests.post(url, json=payload, headers=headers)
print(response.json()) # { "id": "...", "status": "published" }Common Questions
Is the TikTok API free?
XenonFlare offers a free tier so you can test TikTok posting with no credit card required.
Can I post private videos?
Yes, you can set privacy to PUBLIC_TO_EVERYONE, FOLLOWER_OF_CREATOR, or SELF_ONLY via the API.