Stop a Scrape job. Items already finished stay readable for 24 hours; items not started are dropped.

POSThttps://rankfield.dev/v1/scrape/jobs/{id}/cancel

Parameters

Headers

NameTypeRequiredDefaultDescription
AuthorizationstringYes–Bearer followed by your API key. See Authentication.

Path parameters

NameTypeRequiredDefaultDescription
idstringYes–The job id from Start a Scrape job.

Response

The job, now canceled, as in Get a Scrape job. Items already running finish; nothing new starts. A job that has already finished is returned unchanged (its status stays done).

Errors

StatusCodeWhen
401unauthorizedNo valid API key.
404No job with this id for this key, or it has expired. This answer has no code: {"error":{"message":"Not found"}}.