いいねスクリプト設定
このページでは like スクリプトの設定パラメータについて説明します。
概要
like スクリプトはTikTokまたはInstagramの投稿に自動いいねします。APIで複数URLを指定すると 各URLに1タスク が作成されます。start_time でタイミングを制御できます。
スクリプト設定 (script_config)
いいねスクリプトの設定パラメータ:
パラメータ
| パラメータ | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| target_post_urls | string[] | Yes* | [] | いいねする投稿URLの配列(URL毎に1タスク) |
| target_post_url | string | Yes* | "" | 単一URL、または改行/カンマ区切りの複数URL |
| access_method | string | No | "direct" | ナビゲーション方法: direct(URL直接) |
注記
target_post_urls 配列または target_post_url 文字列が必要です。両方の場合は target_post_urls 優先。
備考
複数URL指定時、APIは 各URLに1タスク を作成します。3 URL × 2デバイス = 6タスク。
例
1投稿にいいね
curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "like",
"script_config": {
"target_post_url": "https://www.tiktok.com/@username/video/1234567890"
}
}'
複数投稿にいいね
投稿毎に1タスク作成:
curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "like",
"script_config": {
"target_post_urls": [
"https://www.tiktok.com/@user1/video/111",
"https://www.tiktok.com/@user2/video/222",
"https://www.tiktok.com/@user3/video/333"
]
}
}'
3つの独立タスクが即時作成されます。
開始時刻でいいねをスケジュール
start_time で開始時刻を設定:
curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "like",
"script_config": {
"target_post_url": "https://www.tiktok.com/@username/video/1234567890"
},
"start_time": "14:30"
}'
ユーザー名リストでいいね
特定アカウ ントにいいねタスクを作成:
curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"usernames": ["@my_account1", "@my_account2"],
"script_name": "like",
"script_config": {
"target_post_url": "https://www.tiktok.com/@target/video/123"
}
}'
複数デバイスでバッチいいね
curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_1", "device_2", "device_3"],
"script_name": "like",
"script_config": {
"target_post_url": "https://www.tiktok.com/@viral/video/999"
},
"enable_multi_account": true
}'
Instagram例
InstagramにもAPI対応:
curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "like",
"script_config": {
"target_post_url": "https://www.instagram.com/p/ABC123/"
}
}'
レスポンス
{
"code": 0,
"message": "success",
"data": {
"task_ids": [401, 402, 403],
"created_count": 3
}
}
投稿URL形式
TikTok
https://www.tiktok.com/@username/video/1234567890123456
https://vm.tiktok.com/ABCDEFG/