Trigger Collection V4
Triggers a new data collection job for a scraper.
Creates a new data set immediately and starts the collection in the background. Use the returned schedule_result_id for subsequent status and results lookups.
The request body has two groups: params (collection parameters) and settings (endpoint options). Every parameter marked as required by the scraper must appear inside the params group. Empty strings ("") are accepted as intentional empty values, but a missing key returns MISSING_PARAM. Use GET /v4/api/schedules/{id}/param_info to inspect required parameters.
By default the parameters are applied to this call only and the scraper itself is not modified. Pass settings.param_save: true to also persist them as the scraper's defaults.
If the scraper's union is true and at least one prior data set exists, the most recent data set is reused (results are accumulated into it) instead of creating a new one — the returned schedule_result_id is that reused data set's ID. If union is false or no prior data set exists, a new data set is created.
The request is rejected when the user's ticket is expired or credits are exhausted. Use the HTTP status and code field to distinguish reasons.
Request Parameters
-
Authorization: HeaderHashScraper API key. Send it in the form
Bearer <api_key>. -
schedule_id: String (path)ID of the scraper to collect from. Passed as the
{schedule_id}path segment. You can copy the Bot ID from Actions → Copy Bot ID on the scraper's detail page. -
params: optional ObjectCollection parameters group. Place the scraper's
paramNkeys inside this object.-
param1 ~ param10: optional StringSend inside the
paramsgroup with keysparam1~param10. If the bot has an alias configured, you may use that alias instead ofparamN. The label text (thename/name_enfields inparam_info) is display-only and cannot be used as a key. Required when the scraper has the slot marked as in-use; ignored when not in use. Empty strings ("") are accepted as intentional empty values and forwarded to the worker. UseGET /v4/api/schedules/{id}/param_infoto inspect which slots are in use. -
<alias>: optional StringUnder
params, you may use the English alias configured for the bot as the key instead ofparamN. e.g.keywordinstead ofparam1.
-
-
settings: optional ObjectEndpoint options group. Place collection-related meta options inside this object.
-
param_save: optional Boolean
settings.param_save. Whentrue, the parameters are saved on the scraper itself as defaults for future runs. Whenfalse(default), they only apply to this call.
-
Response Fields
-
result: StringResult of the request.
-
version: StringAPI version.
-
request_id: StringRequest trace ID. Echoed from the client's
X-Request-IDheader when it starts withreq_, otherwise generated by the server (req_<uuid>). -
elapsed_sec: FloatTime the server took to produce the response, in seconds (Float).
-
data: ObjectCollection trigger result.
-
schedule_id: StringID of the requested scraper (echo).
-
name: StringName of the scraper.
-
schedule_result_id: IntegerInteger ID of the data set created by this call. Use it for subsequent status and results lookups.
-
param_save: BooleanEcho of the
settings.param_savevalue sent in the request. -
param_info: ObjectParameters used in this collection. Keys are stable (
param1~paramN) and each entry containsname(label) andvalue.options(allowed values) is not included; useGET /v4/api/schedules/{id}/param_infoto inspect option lists.
-
Error Responses
-
MISSING_API_KEY
{ "result": "error", "version": "v4", "request_id": "req_5a8c1f1c-...", "code": "MISSING_API_KEY", "message": "API key is missing.", "elapsed_sec": 0.0008, "details": { "hint": "Send `Authorization: Bearer <api_key>` header." } } -
INVALID_API_KEY
{ "result": "error", "version": "v4", "request_id": "req_5a8c1f1c-...", "code": "INVALID_API_KEY", "message": "API key is invalid.", "elapsed_sec": 0.0011 } -
MISSING_PARAM
{ "result": "error", "version": "v4", "request_id": "req_5a8c1f1c-...", "code": "MISSING_PARAM", "message": "Required parameter is missing.", "elapsed_sec": 0.0014, "details": { "param_name": "param2" } } -
VALIDATION_FAILED
{ "result": "error", "version": "v4", "request_id": "req_5a8c1f1c-...", "code": "VALIDATION_FAILED", "message": "Validation failed.", "elapsed_sec": 0.0017, "details": { "errors": [ { "code": "MISSING_PARAM", "param_name": "param1" }, { "code": "MISSING_PARAM", "param_name": "param2" } ] } } -
SCHEDULE_NOT_FOUND
{ "result": "error", "version": "v4", "request_id": "req_5a8c1f1c-...", "code": "SCHEDULE_NOT_FOUND", "message": "Schedule not found.", "elapsed_sec": 0.0021, "details": { "resource": "schedule", "id": "8f3a7c1e9b5d24f6" } } -
TICKET_EXPIRED
{ "result": "error", "version": "v4", "request_id": "req_5a8c1f1c-...", "code": "TICKET_EXPIRED", "message": "Service ticket expired", "elapsed_sec": 0.0033, "details": { "reason": "ticket_expired" } } -
CREDIT_EXHAUSTED
{ "result": "error", "version": "v4", "request_id": "req_5a8c1f1c-...", "code": "CREDIT_EXHAUSTED", "message": "Credit exhausted", "elapsed_sec": 0.0033, "details": { "reason": "credit_exhausted" } }
Related Guides
{
"result": "success",
"version": "v4",
"request_id": "req_5a8c1f1c-9b2d-4e7c-9abf-3f7e0a4d1b21",
"elapsed_sec": 0.0123,
"data": {
"schedule_id": "8f3a7c1e9b5d24f6",
"name": "네이버 뉴스 검색",
"schedule_result_id": 239758028,
"param_save": false,
"param_info": {
"param1": { "name": "키워드", "alias": "keyword", "value": "키성장" },
"param2": { "name": "정렬", "alias": "sorting", "value": "추천순" }
}
}
}