Like Script Configuration
This page documents the configuration parameters for the like script used in task creation.
Overview
The like script is used to automatically like posts on TikTok or Instagram. When you provide multiple target post URLs via API, one task is created per target post URL. You can control when each task executes using the start_time parameter.
Script Configuration (script_config)
The script_config object contains the parameters for the like script. Below are the available parameters:
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| target_post_urls | string[] | Yes* | [] | Array of target post URLs to like (one task per URL) |
| target_post_url | string | Yes* | "" | Single target post URL or multiple URLs separated by newlines/commas |
| access_method | string | No | "direct" | How to navigate to the post: direct (via URL) |
Either target_post_urls array or target_post_url string must be provided. If both are provided, target_post_urls takes priority.
When multiple target post URLs are provided, the API creates one task per target post URL. For example, if you specify 3 post URLs and 2 devices, 6 tasks will be created. Use the start_time parameter to control when tasks start executing.