Lewati ke konten utama

Konfigurasi Skrip Like

Halaman ini mendokumentasikan parameter konfigurasi skrip like untuk pembuatan tugas.

Ikhtisar​

Skrip like digunakan untuk menyukai postingan secara otomatis di TikTok atau Instagram. Saat memberikan beberapa URL melalui API, satu tugas dibuat per URL. Gunakan start_time untuk mengontrol waktu eksekusi.

Konfigurasi Skrip (script_config)​

Parameter konfigurasi skrip like:

Parameter​

ParameterTipeDiperlukanDefaultDeskripsi
target_post_urlsstring[]Yes*[]Array URL postingan target (satu tugas per URL)
target_post_urlstringYes*""URL tunggal atau beberapa URL dipisah baris baru/koma
access_methodstringNo"direct"Cara navigasi: direct (via URL)
catatan

Array target_post_urls atau string target_post_url harus disediakan. Jika keduanya, target_post_urls diprioritaskan.

info

Dengan beberapa URL, API membuat satu tugas per URL. 3 URL + 2 perangkat = 6 tugas.

Contoh​

Menyukai Satu Postingan​

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"
}
}'

Menyukai Beberapa Postingan​

Satu tugas dibuat per postingan:

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"
]
}
}'

Ini membuat 3 tugas terpisah yang langsung dijalankan.

Jadwalkan Like dengan Waktu Mulai​

Gunakan start_time untuk menjadwalkan:

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"
}'

Like berdasarkan Daftar Username​

Buat tugas like untuk akun tertentu:

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"
}
}'

Batch Like di Beberapa Perangkat​

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
}'

Contoh Instagram​

API yang sama untuk postingan Instagram:

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/"
}
}'

Respons​

{
"code": 0,
"message": "success",
"data": {
"task_ids": [401, 402, 403],
"created_count": 3
}
}

Format URL Postingan​

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

Link threads.net juga berfungsi. Link /share/ tidak: kodenya adalah pengenal berbeda dari yang digunakan laman postingan, jadi ditolak daripada diubah menjadi URL yang menunjuk ke apa pun.

Praktik Terbaik​

  1. Jadwalkan tugas: Gunakan start_time untuk menyebarkan like.

  2. Kelompokkan dengan bijak: Jangan buat terlalu banyak tugas sekaligus.

  3. Multi-akun: Aktifkan enable_multi_account.

Kode Error​

CodeDescription
40001URL postingan target tidak ada
40003Skrip tidak didukung via API
40301Akses API memerlukan paket Pro+

Lihat Juga​