TikTok Content Posting API Privacy levels: SELF_ONLY | FOLLOWER_OF_CREATOR | MUTUAL_FOLLOW_FRIENDS | PUBLIC_TO_EVERYONE
TikTok Content Posting API
Privacy levels: SELF_ONLY | FOLLOWER_OF_CREATOR | MUTUAL_FOLLOW_FRIENDS | PUBLIC_TO_EVERYONE
{
"title": "Check this out! #fyp",
"video_url": "https://your-r2-or-cdn-url/video.mp4",
"disable_duet": false,
"privacy_level": "PUBLIC_TO_EVERYONE",
"disable_stitch": false,
"disable_comment": false,
"scheduled_publish_time": null
}
{
"publish_id": "sdfger345-34-dfhgrt-3453sdgfg-34234"
}
Send your requests to the following URL using the specified HTTP method.
POST https://eranol.com/api/v1/social/tiktok/publishInclude the following headers with every request. Your API key is required for authentication.
Send the following JSON payload in the request body. Adjust the values to match your use case.
{
"title": "Check this out! #fyp",
"video_url": "https://your-r2-or-cdn-url/video.mp4",
"disable_duet": false,
"privacy_level": "PUBLIC_TO_EVERYONE",
"disable_stitch": false,
"disable_comment": false,
"scheduled_publish_time": null
}Use the following cURL command to make a request to this API endpoint. Replace YOUR_API_KEY with your actual API key from the dashboard.
curl -X POST "https://eranol.com/api/v1/social/tiktok/publish" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"Check this out! #fyp","video_url":"https://your-r2-or-cdn-url/video.mp4","disable_duet":false,"privacy_level":"PUBLIC_TO_EVERYONE","disable_stitch":false,"disable_comment":false,"scheduled_publish_time":null}'Below is an example of a successful JSON response from this endpoint.
{
"publish_id": "sdfger345-34-dfhgrt-3453sdgfg-34234"
}A successful request will return one of the following HTTP status codes.