Skip to content

API Reference

API Reference

Copy page

Every route of the DarkCrawl API, with its fields, an example request and reply, and its errors.

The DarkCrawl API reads .onion sites over Tor and answers in JSON. Every route is under https://api.darkcrawl.dev. The routes that start with /v2 follow Firecrawl’s v2 API, so the Firecrawl SDKs reach them. The routes that start with /darkcrawl/v1 are DarkCrawl’s own. The routes that start with /api read your own company: its plan, usage and activity. GET /api/plans lists the plans on offer.

Start with these four pages. Each answers a question you will have on your first call.

Page What it covers
Authentication How to send your key, and what a refused key looks like.
Errors The shape of an error, every code, and what to do about each.
Rate limits What your plan allows, what counts against it, and what a refused call looks like.
Webhooks The events a crawl, a batch or a monitor sends to your receiver.

Only valid v3 onion addresses are read. A clear-web address is refused with 400 POLICY_FORBIDDEN, and a malformed onion address with 400 INVALID_ONION.

Each route has a page with its fields, a request in curl, Python and Node, an example reply, and the errors it can answer. GET /health needs no key and is on its own page.

Scrape

  • POST /v2/scrape: Read one onion page and get Markdown, links, metadata, indicators and an evidence record.

Crawl

Batch scrape

Map

  • POST /v2/map: List the pages of one onion site, found by a short crawl of its links.

Search

  • POST /v2/search: Search the pages DarkCrawl has stored, and Ahmia for what is missing when the server is set up to ask it.

Stored captures

Parse

  • POST /v2/parse: Upload a PDF, an Office file or an image and get its text back. An image is read by OCR, only with the image parser on.
  • GET /v2/parse/formats: List the file types parse reads.

Extract

Agent

Monitor

Leak library

Watches

Alert channels

Alerts

Your company