Cancel a Batch
Scrape Endpoints
Cancel a Batch
Stop a running or pending batch and refund credits for unprocessed items
DELETE
Cancel a Batch
Documentation Index
Fetch the complete documentation index at: https://docs.spidra.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Cancels a batch that is currentlypending or running. Credits reserved for items that have not yet started are refunded automatically. Items already being processed will complete normally.
Response
| Field | Type | Description |
|---|---|---|
status | "cancelled" | Confirms the batch was cancelled |
cancelledItems | number | Number of pending items that were stopped. Items already running are not counted |
creditsRefunded | number | Credits returned to your balance. Calculated as cancelledItems × reservedCreditsPerItem |
Items that were already
running when you cancelled will finish processing and consume their credits. Only pending items are cancelled and refunded.Errors
| Code | Reason |
|---|---|
401 | Missing x-api-key header |
403 | Invalid or expired API key |
404 | No batch found with this ID, or it belongs to a different user |
409 | The batch is already in a terminal state (completed, failed, or cancelled) and cannot be cancelled |
Retry Failed Batch Scrapes
Re-queue failed items instead of cancelling
Get Batch Status
Check current status before cancelling
Authorizations
Path Parameters
The batch ID to cancel

