Monitor
PATCH /v2/monitor/{monitor_id}
Copy page
Change a monitor. Only the fields you send change.
PATCH /
Authentication: your key as a bearer token.
Path parameters
| Field | Type | Required | Default |
|---|---|---|---|
monitor_id | string | Required |
Body
| Field | Type | Required | Default |
|---|---|---|---|
channelIds | string[] | null | Optional | |
goal | string | null | Optional | |
judgeEnabled | boolean | null | Optional | |
name | string | null | Optional | |
notification | object | null | Optional | |
notification. | object | null | Optional | |
notification. | object | null | Optional | |
retentionDays | integer | null | Optional | |
schedule | object | null | Optional | |
status | string | null Values: active, paused | Optional | |
targets | object[] | null | Optional | |
targets[]. | string Values: scrape, crawl, search | Required | |
targets[]. | string | null | Optional | |
targets[]. | object | null | Optional | |
targets[]. | string[] | Optional | |
targets[]. | object | null | Optional | |
targets[]. | string | Optional | |
targets[]. | integer | Optional | 10 |
targets[]. | string[] | Optional | |
targets[]. | string[] | null Values: ahmia, captures | Optional | |
webhook | string | object | null | Optional | |
webhook. | string | Required | |
webhook. | string[] | null Values: monitor.page, monitor.check.completed | Optional | |
webhook. | object | null | Optional | |
webhook. | object | null | Optional |
Firecrawl compatibility fields
Firecrawl fields DarkCrawl does not offer. It takes them so the Firecrawl SDKs keep working, then ignores or refuses each one as the table says.
| Field | What DarkCrawl does |
|---|---|
origin | Accepted and ignored. |
targets[].excludeDomains | Answers 400 NOT_IMPLEMENTED when set. |
targets[].includeDomains | Answers 400 NOT_IMPLEMENTED when set. |
targets[].searchWindow | Accepted and ignored. |
Request
curl -X PATCH https://api.darkcrawl.dev/v2/monitor/MONITOR_ID \
-H "Authorization: Bearer $DARKCRAWL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"paused"}'import os
import requests
resp = requests.patch(
"https://api.darkcrawl.dev/v2/monitor/MONITOR_ID",
headers={"Authorization": "Bearer " + os.environ["DARKCRAWL_API_KEY"]},
json={
"status": "paused",
},
timeout=330,
)
print(resp.json())const resp = await fetch("https://api.darkcrawl.dev/v2/monitor/MONITOR_ID", {
method: "PATCH",
headers: {
Authorization: "Bearer " + process.env.DARKCRAWL_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"status": "paused"
}),
signal: AbortSignal.timeout(330000),
});
console.log(await resp.json());Response
Status 200.
{
"success": true,
"data": {
"id": "01K0EXAMPLEMONITOR0000000A",
"name": "Notice board",
"status": "paused",
"schedule": {
"cron": "0 */6 * * *",
"timezone": "Europe/Berlin"
},
"nextRunAt": null,
"lastRunAt": null,
"currentCheckId": null,
"targets": [
{
"id": "01K0EXAMPLETARGET00000000A",
"type": "scrape",
"urls": [
"http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/notice"
],
"scrapeOptions": {}
}
],
"webhook": null,
"notification": {},
"emailRecipientSubscriptions": [],
"retentionDays": 30,
"estimatedCreditsPerMonth": 0,
"lastCheckSummary": null,
"goal": null,
"judgeEnabled": false,
"channelIds": [],
"createdAt": "2026-11-26T10:00:00.000000+00:00",
"updatedAt": "2026-11-26T10:00:00.000000+00:00"
}
}Errors
| Code | Status |
|---|---|
BAD_REQUEST | 400 |
NOT_IMPLEMENTED | 400 |
INVALID_ONION | 400 |
POLICY_FORBIDDEN | 400 |
BLOCKLISTED | 403 |
BLOCKLIST_UNAVAILABLE | 503 |
SECRETS_UNAVAILABLE | 503 |
NOT_FOUND | 404 |
What each code means, and what to do about it: Errors.
Notes
- A paused monitor has no
nextRunAt. A body that changes nothing is400 BAD_REQUESTwith the messageUpdate body cannot be empty.targetsreplaces the whole list.nullis refused, except forwebhook,notificationandgoal, where it removes the value. - A
scrapetarget takesurls, acrawltarget oneurlwithcrawlOptions, and asearchtargetqueries. The Monitor guide has the options of each. scheduleis{"cron": ...}or{"text": ...}, with an optionaltimezone. It comes back as the cron it becomes.- An unknown id, and another company's monitor, answer
404 NOT_FOUND.