Stop a crawl
The pages already read stay available. A crawl notices between batches, so it may read one more before it stops.
DELETE
/
api
/
crawl
/
{id}
Stop a crawl
curl --request DELETE \
--url https://api.truscan.co/api/crawl/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.truscan.co/api/crawl/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.truscan.co/api/crawl/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truscan.co/api/crawl/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"message": "<string>",
"result": {
"id": "crwl_8d3ddecc038c10d4",
"status": "queued",
"url": "<string>",
"discovered": 123,
"completed": 123,
"failed": 123,
"max_pages": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"error": "<string>"
}
}{
"success": false,
"message": "<string>",
"result": {
"code": "<string>"
}
}{
"success": false,
"message": "<string>",
"result": {
"code": "<string>"
}
}Authorizations
An API key, sent as Authorization: Bearer enc_…. A dashboard session cookie works on the same route.
Path Parameters
Example:
"crwl_8d3ddecc038c10d4"
Last modified on September 24, 2026
⌘I
Stop a crawl
curl --request DELETE \
--url https://api.truscan.co/api/crawl/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.truscan.co/api/crawl/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.truscan.co/api/crawl/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truscan.co/api/crawl/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"message": "<string>",
"result": {
"id": "crwl_8d3ddecc038c10d4",
"status": "queued",
"url": "<string>",
"discovered": 123,
"completed": 123,
"failed": 123,
"max_pages": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"error": "<string>"
}
}{
"success": false,
"message": "<string>",
"result": {
"code": "<string>"
}
}{
"success": false,
"message": "<string>",
"result": {
"code": "<string>"
}
}