Skip to content

Batch scrape

DELETE /v2/batch/scrape/{job_id}

Copy page

Cancel a batch. Pages already read stay.

DELETE /v2/batch/scrape/{job_id}

Authentication: your key as a bearer token.

Path parameters

FieldTypeRequiredDefault
job_idstringRequired

Request

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

Response

Status 200.

Response
{
  "success": true,
  "status": "cancelled"
}

Notes

  • An unknown id, or a crawl's id, answers 404, and a batch that has finished answers 409. Neither body has a code.