Skip to main content

การกำหนดค่าสคริปต์ View

หน้านี้บันทึกพารามิเตอร์การกำหนดค่าสคริปต์ view

ภาพรวม

สคริปต์ view เปิดโพสต์บน TikTok หรือ Instagram และ ดูเป็นระยะเวลาที่กำหนด — เหมาะสำหรับการเพิ่มเวลาชม/ยอดแสดงผล เมื่อระบุ URL หลายรายการผ่าน API สร้างงานหนึ่งงานต่อ URL ควบคุมเวลาด้วย start_time

การกำหนดค่าสคริปต์ (script_config)

พารามิเตอร์สำหรับสคริปต์ view:

พารามิเตอร์

พารามิเตอร์ชนิดจำเป็นค่าเริ่มต้นคำอธิบาย
target_post_urlsstring[]Yes*[]อาร์เรย์ URL เป้าหมายสำหรับดู (หนึ่งงานต่อ URL)
target_post_urlstringYes*""URL เดียวหรือหลาย URL คั่นด้วยบรรทัดใหม่/จุลภาค
view_durationintegerNo10จำนวนวินาทีที่ดูโพสต์
view_durationsinteger[]Noช่วง [min, max] เป็นวินาที ค่าสุ่มในช่วงนี้จะถูกใช้ มีความสำคัญเหนือ view_duration
note

ต้องระบุ target_post_urls หรือ target_post_url หากระบุทั้งคู่ target_post_urls มีความสำคัญกว่า

การสร้างงาน

เมื่อระบุหลาย URL API สร้าง หนึ่งงานต่อ URL เช่น 3 URL + 2 อุปกรณ์ = 6 งาน ใช้ start_time เพื่อควบคุมเวลาเริ่มต้น

ตัวอย่าง

ดูโพสต์เดียว

curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "view",
"script_config": {
"target_post_url": "https://www.tiktok.com/@username/video/1234567890"
}
}'

ดูโพสต์พร้อมกำหนดเวลาชม

curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "view",
"script_config": {
"target_post_url": "https://www.tiktok.com/@username/video/1234567890",
"view_duration": 30
}
}'

ดูโพสต์พร้อมช่วงเวลาสุ่ม

ใช้เวลาชมสุ่มระหว่าง 15–45 วินาทีต่องาน:

curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "view",
"script_config": {
"target_post_urls": [
"https://www.tiktok.com/@user1/video/111",
"https://www.tiktok.com/@user2/video/222"
],
"view_durations": [15, 45]
}
}'

ดูโพสต์ตามรายชื่อผู้ใช้

curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"usernames": ["@my_account1", "@my_account2"],
"script_name": "view",
"script_config": {
"target_post_url": "https://www.tiktok.com/@target/video/123",
"view_duration": 20
}
}'

ตัวอย่าง Instagram

API เดียวกันสำหรับโพสต์และ Reels ของ Instagram:

curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "view",
"script_config": {
"target_post_url": "https://www.instagram.com/reel/ABC123/",
"view_durations": [10, 30]
}
}'

การตอบสนอง

{
"code": 0,
"message": "success",
"data": {
"task_ids": [501, 502],
"created_count": 2
}
}

รูปแบบ 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/

แนวปฏิบัติที่ดีที่สุด

  1. ใช้ช่วงเวลา: ควรใช้ view_durations แทน view_duration คงที่เพื่อให้แต่ละการดูดูเป็นธรรมชาติมากขึ้น

  2. กำหนดการงาน: ใช้ start_time เพื่อกระจายการดูโพสต์

  3. หลายบัญชี: เปิดใช้งาน enable_multi_account เพื่อดูโพสต์ด้วยหลายบัญชีบนอุปกรณ์เดียวกัน

รหัสข้อผิดพลาด

CodeDescription
40001ไม่มี URL เป้าหมาย
40003ไม่รองรับสคริปต์ผ่าน API
40301ต้องใช้แผน Pro+

ดูเพิ่มเติม