본문으로 건너뛰기

좋아요 스크립트 구성

이 페이지에서는 like 스크립트의 구성 매개변수를 문서화합니다.

개요

like 스크립트는 TikTok 또는 Instagram의 게시물에 자동으로 좋아요를 누릅니다. API를 통해 여러 URL을 제공하면 각 URL에 하나의 작업이 생성됩니다. start_time으로 실행 시간을 제어할 수 있습니다.

스크립트 구성 (script_config)

좋아요 스크립트 구성 매개변수:

매개변수

매개변수유형필수기본값설명
target_post_urlsstring[]Yes*[]좋아요할 게시물 URL 배열(URL당 한 작업)
target_post_urlstringYes*""단일 URL 또는 줄바꿈/쉼표로 구분된 여러 URL
access_methodstringNo"direct"게시물 탐색 방법: direct (URL 통해)
노트

target_post_urls 배열 또는 target_post_url 문자열이 필요합니다. 둘 다 제공되면 target_post_urls 우선.

정보

여러 URL 제공 시 API는 URL당 하나의 작업을 생성합니다. 3 URL + 2 기기 = 6 작업.

예제

단일 게시물 좋아요

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

여러 게시물 좋아요

게시물당 하나의 작업이 생성됩니다:

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/

모범 사례

  1. 작업 예약: start_time으로 좋아요를 시간에 걸쳐 분산시키세요.

  2. 현명하게 일괄 처리: 한 번에 너무 많은 작업 생성 금지.

  3. 멀티 계정: enable_multi_account 활성화.

오류 코드

CodeDescription
40001대상 게시물 URL 없음
40003API를 통해 지원되지 않는 스크립트
40301API 액세스에는 Pro+ 플랜 필요

참고 항목