Diesen Ratgeber gibt es vorerst nur auf Englisch.
Build a TikTok publishing workflow with Python
Aktualisiert am 3. Dezember 2026 3 Min. Lesezeit
A Python publishing workflow needs four parts. A content list with one row per video, a matcher that gives each account its own variant, a scheduler that turns local evening times into posts, and a report that pulls views and followers back. With the Feed Rush Python SDK the whole loop fits in under 100 lines, and the accounts behind it run on real local phones.
If you run more than a handful of TikTok accounts, a spreadsheet and a calendar stop being enough. This guide builds a small Python workflow that publishes across many accounts and reports back, using the Feed Rush SDK. Swap in your own storage as you like.
What we are building
- Content list: a CSV with one row per video variant.
- Matcher: gives each account a different variant each day.
- Scheduler: posts at each account’s local evening hour.
- Report: a weekly table of views and followers per account.
Setup
pip install feedrush
export FEEDRUSH_API_KEY=your_test_key # a test key: nothing is published or charged
Start with a test key while you build. How test keys work.
1. The content list
variant_id,idea,video_url,caption
v001,unboxing,https://cdn.example.com/v001.mp4,"Day 1 with the new kit"
v002,unboxing,https://cdn.example.com/v002.mp4,"I didn't expect this"
v003,how-to,https://cdn.example.com/v003.mp4,"3 settings nobody changes"
Two variants of the same idea should differ in the first second, not only in the caption.
2. Load accounts and content
import csv, os
from feedrush import FeedRush
fr = FeedRush(api_key=os.environ["FEEDRUSH_API_KEY"])
accounts = list(fr.accounts.list(status="ready"))
with open("content.csv") as f:
variants = list(csv.DictReader(f))
3. Match variants to accounts
Each account gets a different variant on the same day, so no two accounts post the same video.
def plan_day(accounts, variants, day_index):
plan = []
for i, account in enumerate(accounts):
v = variants[(day_index * len(accounts) + i) % len(variants)]
plan.append((account, v))
return plan
4. Schedule at local evening hours
Each account has a country and time zone. Post at 7 pm local time.
from datetime import datetime, time
from zoneinfo import ZoneInfo
def local_evening(day, tz_name, hour=19):
return datetime.combine(day, time(hour), ZoneInfo(tz_name)).isoformat()
def schedule(day, day_index):
for account, v in plan_day(accounts, variants, day_index):
fr.posts.create(
account_id=account.id,
video_url=v["video_url"],
caption=v["caption"],
publish_at=local_evening(day, account.time_zone),
idempotency_key=f"{account.id}-{day}-{v['variant_id']}",
)
The idempotency key makes the script safe to re-run: a retry never posts twice. For better hours per country, see the best time to post on TikTok.
5. Report back
def weekly_report():
rows = []
for account in fr.accounts.list(status="ready"):
s = fr.accounts.stats(account.id, days=7)
rows.append((account.country, account.username, s.views, s.followers))
rows.sort(key=lambda r: (r[0], -r[2]))
for country, username, views, followers in rows:
print(f"{country} {username:<24} {views:>8} views {followers:>6} followers")
Read the report by country, on the median account. Tracking results across countries explains which numbers matter.
6. React to events instead of polling
Register a webhook URL in the dashboard to receive post.published, post.needs_changes and post.stats_updated. A small web handler can mark posts live, re-queue a variant that needs a change, or update your report as numbers arrive.
Where the accounts come from
This workflow publishes; it does not create accounts. Feed Rush accounts are made by real people on their own phones with local SIMs, in the country you choose, and warmed up in your niche before they post. You can order more from the same script with fr.quotes.create and fr.orders.create (ordering accounts in bulk by API).
Common questions
Can I post to TikTok from Python without the official API?
To accounts you run with Feed Rush, yes: the SDK schedules posts, and each post goes out from the TikTok app on the account’s own phone. TikTok’s own posting API has strict limits for unaudited apps (details).
How many accounts can one script handle?
Hundreds. The limits are your content supply and your review process, not the code.
Does this work for Instagram too?
Yes. Instagram accounts appear in the same account list, and posts are scheduled the same way.