Skip to content
OSINTtools.io

Onion Search Engine API

Search engine for Tor .onion sites, usable from the clear web or over Tor, with an API for programmatic searches.

Base URL
https://onionsearchengine.com
Sign-in
API key
Free tier
Free tier
Pricing
Subscription
Format
REST
Endpoints
5

Compiled by OSINTtools.io editors from onionsearchengine.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The Onion Search Engine API searches the service's crawled index of .onion sites over HTTPS, so you do not need Tor to query it. The standard search returns matching sites with a title, URL and snippet; premium endpoints add history snapshots of a page, emails and crypto addresses extracted from a site, inbound and outbound links, and known CVEs for detected software.

An investigator can use it to find where a keyword or string appears on the Tor network and to pivot from a hidden service to the wallets, emails and linked services found on it. Every request carries the API key in an X-API-Key header and all responses are JSON.

The free Developer plan allows 1,000 requests a month and the standard search. The docs say history is for Researcher plans and above, the vulnerability endpoint is for Plus, Researcher and Enterprise, and the plans page lists all premium endpoints for Plus and Researcher.

Quick start

  1. Get a key

    Create an account with Onion Search Engine and copy your api key (free tier). Where to get it

  2. Make your first request

    Search the .onion index by keyword, string or site: operator.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://onionsearchengine.com/api.php?q=acme%20leak' \
      -H 'X-API-Key: YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "status": "success",
      "pagination": {
        "total_results": 150,
        "total_pages": 15
      },
      "results": [
        {
          "title": "Example page",
          "url": "exampleexampleexample.onion",
          "context": "...text around the match..."
        }
      ]
    }

Authentication

Send your API key in the X-API-Key header of every request.

The key is shown in your dashboard after signing up.

Get a key from Onion Search Engine

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

1,000 requests a month on the free Developer plan; 10,000 on Plus; 50,000 on Researcher; custom on Enterprise

Free tier. Pricing: subscription.

Errors

StatusMeaning
403Your current plan does not allow access to this feature
  • Passive: the target is not contacted
  • Plan: Any plan

Returns a paginated list of matching .onion sites with title, URL and context snippet. Available on every plan.

Query parameters

qstringrequired

Search query; supports the site: operator

Example: acme leak
pageinteger

Page number

Example: 1Default: 1
Response fields · 6Show

statusstring

success on a good response

total_resultsinteger

Total matches

total_pagesinteger

Total pages

titlestring

Page title

urlstring

The .onion URL

contextstring

Text snippet around the match

curl 'https://onionsearchengine.com/api.php?q=acme%20leak' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success",
  "pagination": {
    "total_results": 150,
    "total_pages": 15
  },
  "results": [
    {
      "title": "Example page",
      "url": "exampleexampleexample.onion",
      "context": "...text around the match..."
    }
  ]
}

Premium

  • Takes: URL
  • Passive: the target is not contacted
  • Plan: Researcher and above

With only url, returns the cached snapshot dates. With date as well, returns the full HTML content of that snapshot.

Query parameters

urlstringrequiredtakes your url

The .onion URL

Example: example.onion
datestring

Snapshot date to retrieve in full

Example: 2025-05-20
Response fields · 6Show

statusstring

success on a good response

urlstring

The URL queried (list mode)

available_snapshotsinteger

Number of cached snapshots (list mode)

snapshot_dates[]string

Snapshot timestamps (list mode)

snapshot_datestring

Date of the snapshot (snapshot mode)

contentstring

HTML content of the snapshot (snapshot mode)

curl 'https://onionsearchengine.com/api_history.php?url=example.onion' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success",
  "url": "example.onion",
  "available_snapshots": 2,
  "snapshot_dates": [
    "2025-06-10T10:30:00Z",
    "2025-05-15T08:00:00Z"
  ]
}
  • Takes: URL
  • Passive: the target is not contacted
  • Plan: Premium endpoints

Structured data the service extracted from a site's content.

Query parameters

urlstringrequiredtakes your url

The .onion URL

Example: example.onion
Response fields · 6Show

statusstring

success on a good response

urlstring

The URL analysed

last_analyzedstring

When the site was last analysed

emails[]string

Email addresses found

btc_addresses[]string

Bitcoin addresses found

xmr_addresses[]string

Monero addresses found

curl 'https://onionsearchengine.com/api_metadata.php?url=example.onion' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success",
  "data": {
    "url": "example.onion",
    "last_analyzed": "2025-06-10T10:30:00Z",
    "emails": [
      "admin@example.org"
    ],
    "btc_addresses": [
      "bc1qexampleexampleexampleexample0000"
    ],
    "xmr_addresses": []
  }
}
  • Takes: URL
  • Passive: the target is not contacted
  • Plan: Premium endpoints

Maps relationships between hidden services.

Query parameters

urlstringrequiredtakes your url

The .onion URL to analyse

Example: example.onion
directionstring

in for inbound links, out for outbound links

Example: outDefault: outOne of: in, out
Response fields · 4Show

statusstring

success on a good response

analyzed_urlstring

The URL analysed

directionstring

in or out

links[]string

Linked .onion sites

curl 'https://onionsearchengine.com/api_graph.php?url=example.onion' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success",
  "query_details": {
    "analyzed_url": "example.onion",
    "direction": "out"
  },
  "links": [
    "siteb.onion",
    "sitec.onion"
  ]
}
  • Takes: URL
  • Passive: the target is not contacted
  • Plan: Plus, Researcher and Enterprise

Cross-references the service's technology profiling of the site with public vulnerability databases such as the NVD.

Query parameters

urlstringrequiredtakes your url

The .onion URL to analyse

Example: example.onion
Response fields · 6Show

statusstring

success on a good response

urlstring

The URL analysed

software_namestring

Detected software

cve_idstring

CVE identifier

severitystring

Severity, for example HIGH or CRITICAL

descriptionstring

Short description of the vulnerability

curl 'https://onionsearchengine.com/api_vulnerabilities.php?url=example.onion' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success",
  "url": "http://example.onion",
  "data": [
    {
      "software_name": "nginx",
      "cve_id": "CVE-2021-23017",
      "severity": "HIGH",
      "description": "A security issue in the DNS resolver in nginx."
    }
  ]
}