Check a TikTok upload's publish status
tiktok.tiktok.publish.statusCheck whether a TikTok upload has finished publishing
- Price
- freeプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/tiktok.tiktok.publish.statusPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
the closing step of every publish flow, and the only place a failure surfaces — an init call and a clean upload both succeed on content TikTok later rejects. status is PROCESSING_UPLOAD | PROCESSING_DOWNLOAD | SEND_TO_USER_INBOX | PUBLISH_COMPLETE | FAILED. On PUBLISH_COMPLETE, data.publicaly_available_post_id (TikTok's spelling) is an ARRAY whose first element is the post id — the URL is https://www.tiktok.com/@{username}/video/{that id}. It can be absent even on success, when the post is SELF_ONLY. Poll at ~20s intervals; TikTok's own reference implementation gives up after ~9 minutes
このツールにパラメータはありません。プロバイダのドキュメント ↗ を参照してください Provider docs
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
curl -X POST 'https://toolswitch.dev/v1/tools/tiktok.tiktok.publish.status' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/tiktok.tiktok.publish.status",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tiktok.tiktok.publish.status", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。