メインコンテンツまでスキップ

いいねスクリプト設定

このページでは like スクリプトの設定パラメータについて説明します。

概要​

like スクリプトはTikTokまたはInstagramの投稿に自動いいねします。APIで複数URLを指定すると 各URLに1タスク が作成されます。start_time でタイミングを制御できます。

スクリプト設定 (script_config)​

いいねスクリプトの設定パラメータ:

パラメータ​

パラメータ型必須デフォルト説明
target_post_urlsstring[]Yes*[]いいねする投稿URLの配列(URL毎に1タスク)
target_post_urlstringYes*""単一URL、または改行/カンマ区切りの複数URL
access_methodstringNo"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/

Instagram​

https://www.instagram.com/p/ABCDEFGHIJK/
https://www.instagram.com/reel/ABCDEFGHIJK/

Threads​

https://www.threads.com/@username/post/ABCDEFGHIJK
https://www.threads.com/t/ABCDEFGHIJK

threads.net リンクも有効です。/share/ リンクは無効です。その ID は投稿ページで使用される ID と異なるため、何も指さないようなURLに変換されるのではなく拒否されます。

ベストプラクティス​

  1. スケジュール: start_time でいいねを時間分散させる。

  2. 適度なバッチ処理: 大量タスクを一度に作成しない。

  3. マルチアカウント: enable_multi_account を有効化。

エラーコード​

CodeDescription
40001ターゲット投稿URLが未指定
40003APIからこのスクリプトはサポート外
40301APIアクセスにはPro+プランが必要

関連ページ​