Skip to content

Scrape

POST /v2/scrape

Copy page

Read one onion page and get Markdown, links, metadata, indicators and an evidence record.

POST /v2/scrape

Authentication: your key as a bearer token.

Body

FieldTypeRequiredDefault
urlstringRequired
checkPromptInjectionboolean | nullOptional
excludeTagsstring[]Optional[]
formats(string | object)[]Optional["markdown"]
formats[].typestringRequired
headersobjectOptional{}
includeTagsstring[]Optional[]
lockdownboolean | nullOptional
maxAgeinteger | nullOptional
maxTextBytesinteger | nullOptional
minAgeinteger | nullOptional
onlyMainContentbooleanOptionaltrue
parsers(string | object)[]Optional
redactPIIboolean | objectOptional
renderstring Values: auto, never, alwaysOptional"auto"
skipTlsVerificationbooleanOptionalfalse
storeInCacheboolean | nullOptional
timeoutinteger | nullOptional
waitForintegerOptional0
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
actionsAnswers 400 NOT_IMPLEMENTED when not empty.
auditMetadataAccepted and ignored.
blockAdsIgnored, with a warning when not Firecrawl's default.
domainToolsAccepted and ignored.
fastModeIgnored, with a warning when not Firecrawl's default.
integrationAccepted and ignored.
locationIgnored, with a warning when not Firecrawl's default.
mobileIgnored, with a warning when not Firecrawl's default.
onlyCleanContentIgnored, with a warning when not Firecrawl's default.
originAccepted and ignored.
profileIgnored, with a warning when not Firecrawl's default.
proxyIgnored, with a warning when not Firecrawl's default.
removeBase64ImagesAccepted and ignored.
safeModeIgnored, with a warning when not Firecrawl's default.
threatProtectionAccepted and ignored.
toolDetailAccepted and ignored.
useMockAccepted and ignored.
zeroDataRetentionIgnored, with a warning when not Firecrawl's default.

Request

bash
curl -X POST https://api.darkcrawl.dev/v2/scrape \
  -H "Authorization: Bearer $DARKCRAWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/notice","formats":["markdown","links"]}'

Response

Status 200.

Response
{
  "success": true,
  "data": {
    "markdown": "# Notice\n\nSample page text.\n\nContact: sales@example.invalid\n",
    "links": [
      "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/about",
      "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/contact"
    ],
    "metadata": {
      "title": "Notice",
      "description": "",
      "language": "en",
      "sourceURL": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/notice",
      "url": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/notice",
      "statusCode": 200,
      "contentType": "text/html",
      "scrapeId": "01K0EXAMPLECAPTURE0000000A",
      "onion": {
        "host": "exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion",
        "valid": true,
        "version": 3
      },
      "evidence": {
        "captureId": "01K0EXAMPLECAPTURE0000000A",
        "fetchedAt": "2026-11-26T10:00:00+00:00",
        "sha256Raw": "9f2c000000000000000000000000000000000000000000000000000000000000"
      },
      "cacheState": "miss",
      "cachedAt": "2026-11-26T10:00:00+00:00"
    },
    "indicators": [
      {
        "type": "email",
        "value": "sales@example.invalid",
        "count": 1
      }
    ],
    "resources": [
      {
        "category": "image",
        "element": "img",
        "url": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/logo.png",
        "label": "Logo",
        "title": "",
        "filename": "logo.png",
        "type": "image/png",
        "size": null,
        "download": {
          "status": "metadata_only"
        }
      }
    ]
  }
}

Errors

CodeStatus
BAD_REQUEST400
INVALID_ONION400
POLICY_FORBIDDEN400
BLOCKLISTED403
ONION_UNREACHABLE502
SCRAPE_TIMEOUT408
TOR_NOT_READY503
BLOCKLIST_UNAVAILABLE503
GATED502
CONTENT_BLOCKED422
SCRAPE_NO_CACHED_DATA404
SCRAPE_LOCKDOWN_CACHE_MISS404
SCRAPE_PROMPT_INJECTION_DETECTED403
AI_UNAVAILABLE503
BROWSER_UNAVAILABLE503

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

Notes

  • data holds one key for each format you ask for, and always metadata, indicators and resources. The reply here shows the main fields.
  • resources lists the images, videos and files the page names. DarkCrawl does not fetch their bytes.
  • A scrape is one request and, when it serves a page, one page. A fresh scrape is the default: maxAge serves a stored copy instead. Rate limits has the limits.
  • The options and what each does are in the Scrape guide.