API Authentication
All requests require your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY_HERE
Get your API key after purchase! Server details will be provided in your purchase confirmation.
Engagement Boosting
Increase video engagement with saves, likes, and comment interactions.
POST Add Saves/Favorites
/saves/send-saves
Description: Add saves/favorites to increase video popularity
Request Body:
{
"awemeid": "7123456789012345678",
"count": 1000
}
Note: You can use either the video ID or full TikTok URL for awemeid.
Success Response (200):
{
"message": "1000 saves are being processed in background",
"status": "success",
"requestId": "save_1729123456_abc12345",
"awemeId": "7123456789012345678",
"count": 1000,
"estimatedTime": "10 minutes"
}
POST Comment Likes
/comment-likes/send-comment-likes
Description: Add likes to specific comments for increased visibility
Request Body:
{
"cid": "comment_id_123456",
"aweme_id": "7123456789012345678",
"count": 500
}
Success Response (200):
{
"message": "500 comment likes are being processed",
"status": "success",
"requestId": "task_abc123def456",
"progress": 0,
"estimatedTime": "5 minutes"
}
POST Video Likes
/video-likes/digg-likes
Description: Add a like to a video (single request)
Request Body:
{
"awemeid": "7560754239920950531",
"cookie": [
{
"name": "sessionid",
"value": "your_session_value",
"domain": ".tiktok.com"
}
]
}
Success Response (200):
{
"message": "Like request completed",
"status": "success",
"like_sent": true,
"tiktok_response": {
"status_code": 0,
"is_digg": 1,
"digg_count": 12345
}
}
Code Examples
Ready-to-use code examples in popular programming languages.
cURL Examples
Post Multiple Comments:
curl -X POST "https://your-server:port/comment/post-comment" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tiktokLink": "https://www.tiktok.com/@user/video/123456789",
"comments": "amazing,cool,nice,great,awesome"
}'
Add Saves:
curl -X POST "https://your-server:port/saves/send-saves" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"awemeid": "7123456789012345678",
"count": 1000
}'
Generate MSToken:
curl -X GET "https://your-server:port/mstoken/generate/random" \
-H "Authorization: Bearer YOUR_API_KEY"
Python Example
import requests
# Configuration
API_KEY = "YOUR_API_KEY"
BASE_URL = "https://your-server:port"
headers = {
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json"
}
# Post comments
def post_comments(tiktok_url, comments_list):
data = {
"tiktokLink": tiktok_url,
"comments": ",".join(comments_list)
}
response = requests.post(
f"{BASE_URL}/comment/post-comment",
headers=headers,
json=data
)
return response.json()
# Add saves
def add_saves(video_id, count):
data = {
"awemeid": video_id,
"count": count
}
response = requests.post(
f"{BASE_URL}/saves/send-saves",
headers=headers,
json=data
)
return response.json()
# Usage example
comments = ["amazing", "cool", "nice", "great"]
result = post_comments("https://www.tiktok.com/@user/video/123", comments)
print(result)
JavaScript/Node.js Example
const axios = require('axios');
// Configuration
const API_KEY = 'YOUR_API_KEY';
const BASE_URL = 'https://your-server:port';
const headers = {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json'
};
// Post comments
async function postComments(tiktokUrl, commentsList) {
try {
const response = await axios.post(
`${BASE_URL}/comment/post-comment`,
{
tiktokLink: tiktokUrl,
comments: commentsList.join(',')
},
{ headers }
);
return response.data;
} catch (error) {
console.error('Error posting comments:', error.response?.data);
return null;
}
}
// Generate MSToken
async function generateMSToken() {
try {
const response = await axios.get(
`${BASE_URL}/mstoken/generate/random`,
{ headers }
);
return response.data;
} catch (error) {
console.error('Error generating MSToken:', error.response?.data);
return null;
}
}
// Usage example
(async () => {
const comments = ['amazing', 'cool', 'nice', 'great'];
const result = await postComments('https://www.tiktok.com/@user/video/123', comments);
console.log(result);
})();
Error Handling
Understanding API responses and handling errors gracefully.
Authentication Error (401)
{
"detail": "nah active"
}
Solution: Check your API key or contact support if expired.
Service Unavailable (503)
{
"error": "Service temporarily unavailable",
"status": "error",
"code": "service_error"
}
Solution: Server maintenance or high load. Please retry after a few minutes.
Request Timeout (408)
{
"error": "Request timeout",
"status": "error",
"code": "timeout_error"
}
Solution: Request took too long. Reduce batch size or retry.
Comment Management
Post comments on TikTok videos with multiple methods for maximum flexibility.
POST Multiple Comments
Description: Post multiple comments using predefined cookies
Request Body:
Success Response (200):
POST Single Comment
Description: Post a single comment with custom cookie
Request Body:
Success Response (200):
POST Quick Comments (French)
Description: Post 20 predefined French comments instantly
Request Body:
Predefined Comments: "yo", "salut", "bonjour", "coucou", "super", "cool", "nice", "top", "génial", "parfait", "incroyable", "wow", "magnifique", "excellent", "bravo", "fantastique", "amazing", "stylé"