Scrape
POST /v2/scrape
Copy page
Read one onion page and get Markdown, links, metadata, indicators and an evidence record.
POST /
Authentication: your key as a bearer token.
Body
| Field | Type | Required | Default |
|---|---|---|---|
url | string | Required | |
checkPromptInjection | boolean | null | Optional | |
excludeTags | string[] | Optional | [] |
formats | (string | object)[] | Optional | ["markdown"] |
formats[]. | string | Required | |
headers | object | Optional | {} |
includeTags | string[] | Optional | [] |
lockdown | boolean | null | Optional | |
maxAge | integer | null | Optional | |
maxTextBytes | integer | null | Optional | |
minAge | integer | null | Optional | |
onlyMainContent | boolean | Optional | true |
parsers | (string | object)[] | Optional | |
redactPII | boolean | object | Optional | |
render | string Values: auto, never, always | Optional | "auto" |
skipTlsVerification | boolean | Optional | false |
storeInCache | boolean | null | Optional | |
timeout | integer | null | Optional | |
waitFor | integer | Optional | 0 |
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 |
|---|---|
actions | Answers 400 NOT_IMPLEMENTED when not empty. |
auditMetadata | Accepted and ignored. |
blockAds | Ignored, with a warning when not Firecrawl's default. |
domainTools | Accepted and ignored. |
fastMode | Ignored, with a warning when not Firecrawl's default. |
integration | Accepted and ignored. |
location | Ignored, with a warning when not Firecrawl's default. |
mobile | Ignored, with a warning when not Firecrawl's default. |
onlyCleanContent | Ignored, with a warning when not Firecrawl's default. |
origin | Accepted and ignored. |
profile | Ignored, with a warning when not Firecrawl's default. |
proxy | Ignored, with a warning when not Firecrawl's default. |
removeBase64Images | Accepted and ignored. |
safeMode | Ignored, with a warning when not Firecrawl's default. |
threatProtection | Accepted and ignored. |
toolDetail | Accepted and ignored. |
useMock | Accepted and ignored. |
zeroDataRetention | Ignored, with a warning when not Firecrawl's default. |
Request
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"]}'import os
import requests
resp = requests.post(
"https://api.darkcrawl.dev/v2/scrape",
headers={"Authorization": "Bearer " + os.environ["DARKCRAWL_API_KEY"]},
json={
"url": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/notice",
"formats": ["markdown", "links"],
},
timeout=330,
)
print(resp.json())const resp = await fetch("https://api.darkcrawl.dev/v2/scrape", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.DARKCRAWL_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"url": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/notice",
"formats": [
"markdown",
"links"
]
}),
signal: AbortSignal.timeout(330000),
});
console.log(await resp.json());Response
Status 200.
{
"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
| Code | Status |
|---|---|
BAD_REQUEST | 400 |
INVALID_ONION | 400 |
POLICY_FORBIDDEN | 400 |
BLOCKLISTED | 403 |
ONION_UNREACHABLE | 502 |
SCRAPE_TIMEOUT | 408 |
TOR_NOT_READY | 503 |
BLOCKLIST_UNAVAILABLE | 503 |
GATED | 502 |
CONTENT_BLOCKED | 422 |
SCRAPE_NO_CACHED_DATA | 404 |
SCRAPE_LOCKDOWN_CACHE_MISS | 404 |
SCRAPE_PROMPT_INJECTION_DETECTED | 403 |
AI_UNAVAILABLE | 503 |
BROWSER_UNAVAILABLE | 503 |
What each code means, and what to do about it: Errors.
Notes
dataholds one key for each format you ask for, and alwaysmetadata,indicatorsandresources. The reply here shows the main fields.resourceslists 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:
maxAgeserves a stored copy instead. Rate limits has the limits. - The options and what each does are in the Scrape guide.