Into The Darkweb avatar
Into The Darkweb

Pricing

from $0.00005 / actor start

Go to Apify Store
Into The Darkweb

Into The Darkweb

Scrape and interact with darkweb .onion sites via Tor. Easy Access mode fetches any page in one call. Browser Experience mode runs full sessions — navigate, click, type, screenshot, extract data. All traffic routed through Tor with unique exit IPs and randomized fingerprints.

Pricing

from $0.00005 / actor start

Rating

5.0

(2)

Developer

Olib AI

Olib AI

Maintained by Community

Actor stats

2

Bookmarked

3

Total users

2

Monthly active users

a day ago

Last modified

Share

Access .onion sites and the darkweb through the Tor network using Owl Browser.

Python 3.12+ License: MIT


Overview

Into The Darkweb is an Apify actor that provides programmatic access to the Tor network through Owl Browser's anti-detection browser infrastructure. It offers two modes of operation:

  • Easy Access — Fetch any .onion page in a single call. Pass a URL, get back HTML. No context management needed.
  • Browser Experience — Run a full interactive browsing session over Tor with a sequence of actions: navigate, click, type, take screenshots, extract data, and more.

All traffic is routed through Tor with unique exit node IPs per session. Browser fingerprints are randomized for each context.


Quick Start

Easy Access — Fetch a page

{
"mode": "easy",
"region": "US",
"url": "http://2gzyxa5ihm7nsber64qvit6eraokhlmr6scarvb5xqi6hx4i7flrcbad.onion"
}

Returns the full HTML content of the page.

Browser Experience — Interactive session

{
"mode": "browser",
"region": "EU",
"os": "linux",
"actions": [
{"action": "navigate", "url": "http://2gzyxa5ihm7nsber64qvit6eraokhlmr6scarvb5xqi6hx4i7flrcbad.onion"},
{"action": "wait_for_selector", "selector": "#content", "timeout": 15000},
{"action": "screenshot"},
{"action": "extract_text"},
{"action": "get_html"}
]
}

Creates a Tor-enabled browser context, runs each action sequentially, collects all results, and auto-closes the context when done.


Input Parameters

General Settings

ParameterTypeRequiredDefaultDescription
modestringYes"easy""easy" for one-shot page fetch, "browser" for interactive session
regionstringYes"US"Browser instance region: "US" (United States) or "EU" (Europe)
osstringNoOS fingerprint: "windows", "macos", or "linux"

Easy Access Options

ParameterTypeRequiredDefaultDescription
urlstringYes (easy mode)The .onion URL or any URL to fetch
outputFormatstringNo"html"Output format: "html" (raw HTML), "text" (extracted plain text), "markdown" (markdown conversion)
waitUntilstringNoWhen navigation is complete: "load", "domcontentloaded", "networkidle", "fullscroll"
timeoutintegerNo30000Navigation timeout in milliseconds (5000–120000)

Browser Experience Options

ParameterTypeRequiredDefaultDescription
timezonestringNoIANA timezone (e.g. "America/New_York", "Europe/London")
actionsarrayYes (browser mode)Sequence of browser actions to execute

Available Browser Actions

Each action in the actions array is a JSON object with an action field and action-specific parameters. The browser context ID is injected automatically.

ActionParametersDescription
navigateurl (required), wait_until, timeoutNavigate to a URL
reloadwait_until, timeoutReload the current page
go_backwait_until, timeoutNavigate back in history
go_forwardwait_until, timeoutNavigate forward in history

Interaction

ActionParametersDescription
clickselector (required)Click an element. Accepts CSS selectors, XY coordinates ("100x200"), or natural language ("Login button")
typeselector (required), text (required)Type text into an input field
pickselector (required), value (required)Select a dropdown option
submit_formselectorSubmit a form

Data Extraction

ActionParametersDescription
extract_textselectorExtract text content from the page or a specific element
get_htmlGet the full page HTML
screenshotTake a screenshot (saved to key-value store as PNG)
get_page_infoGet current URL, title, and page metadata
evaluatescript (required)Execute JavaScript and return the result

Scrolling

ActionParametersDescription
scroll_byx, yScroll by pixel offset
scroll_to_elementselector (required)Scroll to a specific element
scroll_to_topScroll to the top of the page
scroll_to_bottomScroll to the bottom of the page

Waiting

ActionParametersDescription
wait_for_selectorselector (required), timeoutWait for an element to appear

Cookies

ActionParametersDescription
get_cookiesGet all cookies for the current page
set_cookiename (required), value (required), domain, pathSet a cookie
delete_cookiesDelete all cookies

Output

Easy Access Output

{
"url": "http://example.onion",
"content": "<!DOCTYPE html>...",
"outputFormat": "html",
"status": "success",
"region": "US",
"timestamp": "2025-01-15T12:00:00+00:00"
}

Browser Experience Output

{
"status": "success",
"region": "EU",
"contextId": "ctx_000001",
"actionsTotal": 5,
"actionsSucceeded": 5,
"actionsFailed": 0,
"results": [
{
"step": 1,
"action": "navigate",
"status": "success",
"result": { "url": "http://example.onion", "title": "..." },
"durationMs": 8500
},
{
"step": 2,
"action": "screenshot",
"status": "success",
"result": { "screenshotKey": "screenshot_1", "sizeBytes": 245760 },
"durationMs": 1200
}
],
"timestamp": "2025-01-15T12:00:05+00:00"
}

Screenshots are stored in the Apify key-value store as PNG files, accessible via the screenshotKey in the results.

Status values: "success" (all actions passed), "partial" (some actions failed), "error" (all actions failed or actor-level error).


Examples

Scrape an onion site

{
"mode": "easy",
"region": "US",
"url": "http://2gzyxa5ihm7nsber64qvit6eraokhlmr6scarvb5xqi6hx4i7flrcbad.onion",
"waitUntil": "networkidle",
"timeout": 60000
}

Login and extract data from a .onion site

{
"mode": "browser",
"region": "EU",
"os": "linux",
"timezone": "Europe/Berlin",
"actions": [
{"action": "navigate", "url": "http://example.onion/login"},
{"action": "type", "selector": "#username", "text": "myuser"},
{"action": "type", "selector": "#password", "text": "mypass"},
{"action": "click", "selector": "button[type='submit']"},
{"action": "wait_for_selector", "selector": ".dashboard", "timeout": 15000},
{"action": "screenshot"},
{"action": "navigate", "url": "http://example.onion/data"},
{"action": "extract_text", "selector": ".results"},
{"action": "get_html"}
]
}

Take a screenshot of a darkweb page

{
"mode": "browser",
"region": "US",
"actions": [
{"action": "navigate", "url": "http://2gzyxa5ihm7nsber64qvit6eraokhlmr6scarvb5xqi6hx4i7flrcbad.onion"},
{"action": "wait_for_selector", "selector": "body", "timeout": 30000},
{"action": "screenshot"},
{"action": "get_page_info"}
]
}

Environment Variables

These are configured in the Apify actor settings (not user input):

VariableDescription
OWL_BROWSER_US_URLOwl Browser US region endpoint URL
OWL_BROWSER_US_TOKENOwl Browser US region API token
OWL_BROWSER_EU_URLOwl Browser EU region endpoint URL
OWL_BROWSER_EU_TOKENOwl Browser EU region API token

How It Works

  1. The actor reads user input and selects the Owl Browser instance for the chosen region (US or EU).
  2. All connections are routed through the Tor network with unique exit node IPs per session.
  3. Browser fingerprints (User-Agent, OS, WebGL, Canvas, etc.) are randomized using Owl Browser's anti-detection engine.

Easy Access uses the browser_go tool, which handles context creation, Tor-routed navigation, HTML extraction, and cleanup in a single call.

Browser Experience creates a dedicated Tor-enabled browser context with SOCKS5h proxy (127.0.0.1:9050) and Tor circuit isolation. Each action runs sequentially against this context. The context is always closed when the session ends, even if errors occur.


Technology

Built with:

  • Owl Browser — Anti-detection browser with Tor integration, fingerprint spoofing, and remote automation APIs.
  • Owl Browser Python SDK v2 — Async-first Python client for Owl Browser (owl-browser on PyPI).
  • Apify SDK — Actor runtime, dataset storage, and key-value store for screenshots.

License

MIT License - see LICENSE file for details.



Keywords

darkweb, dark web, tor, tor browser, onion, .onion, hidden services, tor network, onion routing, darknet, deep web, anonymous browsing, tor proxy, socks5, onion scraper, darkweb scraper, tor scraping, onion crawler, darkweb crawler, darkweb monitoring, threat intelligence, OSINT, open source intelligence, darknet monitoring, tor automation, onion access, hidden service scraper, anti-detection browser, browser fingerprinting, fingerprint spoofing, stealth browser, web scraping, browser automation, headless browser, remote browser, apify actor, owl browser