Skip to content

Monitor

POST /v2/monitor

Copy page

Create a monitor: targets to read on a schedule, and a report of what changed.

POST /v2/monitor

Authentication: your key as a bearer token.

Body

FieldTypeRequiredDefault
namestringRequired
scheduleobjectRequired
targetsobject[]Required
targets[].typestring Values: scrape, crawl, searchRequired
targets[].idstring | nullOptional
targets[].scrapeOptionsobject | nullOptional
targets[].urlsstring[]Optional
targets[].crawlOptionsobject | nullOptional
targets[].urlstringOptional
targets[].maxResultsintegerOptional10
targets[].queriesstring[]Optional
targets[].sourcesstring[] | null Values: ahmia, capturesOptional
channelIdsstring[]Optional[]
goalstring | nullOptional
judgeEnabledboolean | nullOptional
notificationobject | nullOptional
notification.emailobject | nullOptional
notification.slackobject | nullOptional
retentionDaysintegerOptional30
webhookstring | object | nullOptional
webhook.urlstringRequired
webhook.eventsstring[] | null Values: monitor.page, monitor.check.completedOptional
webhook.headersobject | nullOptional
webhook.metadataobject | nullOptional
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.

FieldWhat DarkCrawl does
targets[].excludeDomainsAnswers 400 NOT_IMPLEMENTED when set.
targets[].includeDomainsAnswers 400 NOT_IMPLEMENTED when set.
targets[].searchWindowAccepted and ignored.
originAccepted and ignored.

Request

bash
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"]}]}'

Response

Status 200.

Response
{
  "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

CodeStatus
BAD_REQUEST400
NOT_IMPLEMENTED400
INVALID_ONION400
POLICY_FORBIDDEN400
BLOCKLISTED403
BLOCKLIST_UNAVAILABLE503
SECRETS_UNAVAILABLE503
QUOTA_EXCEEDED402

What each code means, and what to do about it: Errors.

Notes

  • A scrape target takes urls, a crawl target one url with crawlOptions, and a search target queries. The Monitor guide has the options of each.
  • schedule is {"cron": ...} or {"text": ...}, with an optional timezone. 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, with details of {"limit": "monitors", "max": ...}. Rate limits has the limit.
  • Each check reserves one page for each scrape address and a crawl target's limit for each crawl. Search targets cost nothing. A crawl limit above the plan's crawl maximum is lowered, and warning says so.
  • webhook is https only, and is shown back as a hint of its address and *** for each header value. See Webhooks. Name alert channels in channelIds to be told when a page changes.
  • Turning on notification.email or notification.slack is 400 NOT_IMPLEMENTED: use channelIds.