Skip to content

Guides

Map

Copy page

List the URLs of one onion service without reading each page.

POST /v2/map finds the pages of one onion service. It follows links 2 deep, builds no Markdown and stores nothing but the job. Use it to see what a site holds before you crawl it.

bash
curl -X POST https://api.darkcrawl.dev/v2/map \
  -H "Authorization: Bearer $DARKCRAWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/notice","search":"forum"}'
Option What it does
url The service to map. Required.
search Keep links whose URL or title holds this text. Case does not matter.
limit The most links to return. 5000 by default.
timeout Milliseconds, 1000 to 300000, 60000 by default.
includeSubdomains, ignoreQueryParameters Both true by default.
sitemap, headers Also accepted.

links holds {url, title?, description?} for each page. When the time runs out, the reply carries a warning and the links found so far.

Response
{
  "success": true,
  "id": "01K0EXAMPLEMAP000000000000",
  "links": [
    {
      "url": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/",
      "title": "Notice"
    },
    {
      "url": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/forum",
      "title": "Forum",
      "description": "Sample forum index"
    },
    {
      "url": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/forum/rules"
    }
  ]
}

A map counts as one request. It can reach the plan’s requests a minute and requests a day, shown on Rate limits.