Monitor
POST /v2/monitor
Copy page
Create a monitor: targets to read on a schedule, and a report of what changed.
POST /
Authentication: your key as a bearer token.
Body
| Field | Type | Required | Default |
|---|---|---|---|
name | string | Required | |
schedule | object | Required | |
targets | object[] | Required | |
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 | |
channelIds | string[] | Optional | [] |
goal | string | null | Optional | |
judgeEnabled | boolean | null | Optional | |
notification | object | null | Optional | |
notification. | object | null | Optional | |
notification. | object | null | Optional | |
retentionDays | integer | Optional | 30 |
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 |
|---|---|
targets[].excludeDomains | Answers 400 NOT_IMPLEMENTED when set. |
targets[].includeDomains | Answers 400 NOT_IMPLEMENTED when set. |
targets[].searchWindow | Accepted and ignored. |
origin | Accepted and ignored. |
Request
curl -X POST https://api.darkcrawl.dev/v2/monitor \
-H "Authorization: Bearer $DARKCRAWL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Notice board","schedule":{"cron":"0 */6 * * *","timezone":"Europe/Berlin"},"targets":[{"type":"scrape","urls":["http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/notice"]}]}'import os
import requests
resp = requests.post(
"https://api.darkcrawl.dev/v2/monitor",
headers={"Authorization": "Bearer " + os.environ["DARKCRAWL_API_KEY"]},
json={
"name": "Notice board",
"schedule": {
"cron": "0 */6 * * *",
"timezone": "Europe/Berlin",
},
"targets": [
{
"type": "scrape",
"urls": ["http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/notice"],
},
],
},
timeout=330,
)
print(resp.json())const resp = await fetch("https://api.darkcrawl.dev/v2/monitor", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.DARKCRAWL_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "Notice board",
"schedule": {
"cron": "0 */6 * * *",
"timezone": "Europe/Berlin"
},
"targets": [
{
"type": "scrape",
"urls": [
"http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/notice"
]
}
]
}),
signal: AbortSignal.timeout(330000),
});
console.log(await resp.json());Response
Status 200.
{
"success": true,
"data": {
"id": "01K0EXAMPLEMONITOR0000000A",
"name": "Notice board",
"status": "active",
"schedule": {
"cron": "0 */6 * * *",
"timezone": "Europe/Berlin"
},
"nextRunAt": "2026-11-26T12:00:00.000000+00:00",
"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 |
QUOTA_EXCEEDED | 402 |
What each code means, and what to do about it: Errors.
Notes
- 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.- A company can keep as many monitors as its plan allows. At the limit the call is
402 QUOTA_EXCEEDED, withdetailsof{"limit": "monitors", "max": ...}. Rate limits has the limit. - Each check reserves one page for each scrape address and a crawl target's
limitfor each crawl. Search targets cost nothing. A crawllimitabove the plan's crawl maximum is lowered, andwarningsays so. webhookishttpsonly, and is shown back as a hint of its address and***for each header value. See Webhooks. Name alert channels inchannelIdsto be told when a page changes.- Turning on
notification.emailornotification.slackis400 NOT_IMPLEMENTED: usechannelIds.