Skip to content

Crawl

DELETE /v2/crawl/{job_id}

Copy page

Cancel a crawl. Pages already read stay.

DELETE /v2/crawl/{job_id}

Authentication: your key as a bearer token.

Path parameters

FieldTypeRequiredDefault
job_idstringRequired

Request

bash
curl -X DELETE https://api.darkcrawl.dev/v2/crawl/JOB_ID \
  -H "Authorization: Bearer $DARKCRAWL_API_KEY"

Response

Status 200.

Response
{
  "status": "cancelled"
}

Notes

  • The reply is {"status": "cancelled"}, with no success key. A cancel settles the job's pages: the ones it read are charged and the rest are released.
  • An unknown id answers 404 with {"error": "Job not found"}, and a job that has finished answers 409 with {"error": "Crawl is already completed"}. Neither body has a code.