Cancel a Collection V2
Send a cancellation signal to an in-progress collection.
The worker does not stop immediately — it picks up the signal on its next polling cycle and winds the current job down.
Right after the response, the dataset's sr_status becomes canceling, and once all jobs have wound down it becomes canceled (since 2026-09-27; previously it stayed at canceling). Use collect_status to monitor the cancellation.
Calling this on a dataset that has already ended (finish, canceled, etc.) returns success and changes nothing — the collected results and the status stay as they are (since 2026-09-27; previously the status was overwritten to canceling).
Request Parameters
-
api_key: StringHashScraper API key
-
schedule_result_id: IntegerID of the dataset to cancel. Pass the value returned by
collectas-is.
Response Fields
-
result: StringRequest outcome.
-
version: StringAPI version.
-
cancel_info: ObjectDetails about the cancellation request.
-
schedule_result_id: IntegerDataset ID echoed from the request.
-
schedule_id: StringIdentifier of the scraper that owns this dataset. The value is read from the server.
-
param_info: ObjectSnapshot of the parameters from the original collection. Only
param1~param5that were enabled are included, and keys carry the scraper's parameter labels (e.g.param1(keyword)). When the scraper has no label configured, the label slot may be empty (param1()) or a placeholder (param1(param1)).
-
-
elapsed_time: FloatServer-side processing time (seconds, as a numeric value).
Error Responses
-
schedule_result_id missing
{ "result": "error", "version": "v2", "message": "`schedule_result_id` parameter is required" } -
Schedule result not found
{ "result": "error", "version": "v2", "message": "schedule_result(id: YOUR_SCHEDULE_RESULT_ID) not found" }
Related Guides
Example Request
Example Response 200
{
"result": "success",
"version": "v2",
"cancel_info": {
"schedule_result_id": 13229289,
"schedule_id": "사람인_채용공고_수집_1697441449957",
"param_info": {
"param1(검색할 키워드)": "개발자",
"param2(최대 수집 개수)": "10"
}
},
"elapsed_time": 0.0234
}