Python SDK
Utilities
Cancel Job
Attempts to cancel an asynchronous job that is currently pending or processing. Jobs that have already completed will remain unchanged.
DELETE
Python SDK
Overview
Cancel an asynchronous job that is currently pending or processing. Jobs that have already completed, failed, or been canceled will remain unchanged.Response
A successful cancellation returns a confirmation message:Response Fields
| Field | Type | Description |
|---|---|---|
job_id | string | Identifier of the job that was cancelled. |
message | string | Human-readable confirmation message. |
When to Cancel Jobs
Cancel jobs when:- The extraction is no longer needed
- You submitted a job with incorrect parameters
- You want to stop processing to conserve page usage
Cancellation is best-effort. If a job is already mid-processing, it may complete before the cancellation takes effect. Pages used before cancellation are still counted toward your usage.
Example Usage
Cancel a Job
Cancel with Error Handling
Cancel Multiple Jobs
Error Responses
| Status | Description |
|---|---|
401 | Invalid or missing API key. |
403 | You don’t have access to this job. |
404 | Job not found. |
500 | Job could not be cancelled or internal server error. |
Authorizations
API key for authentication
Path Parameters
Identifier returned from an async job submission.
