Check a TikTok upload's publish status
tiktok.tiktok.publish.statusCheck whether a TikTok upload has finished publishing
- Price
- freeAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- Latency p50
- ——
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/tiktok.tiktok.publish.statusPreview- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
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
Esta herramienta no tiene parámetros. Consulta la documentación del proveedor ↗ Provider docs
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a free, incluida la tarifa de servicio.