# Onion Search Engine API reference

> 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…

Source: https://osinttools.io/apis/onion-search-engine/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/onion-search-engine/

- Base URL: https://onionsearchengine.com
- Authentication: API key in the `X-API-Key` header. Get a key: https://onionsearchengine.com/signup.php The key is shown in your dashboard after signing up.
- Free tier: yes
- Pricing: Subscription
- Rate limits: 1,000 requests a month on the free Developer plan; 10,000 on Plus; 50,000 on Researcher; custom on Enterprise
- Vendor docs: https://onionsearchengine.com/api_documentation.php

## Overview

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.

## Errors

| Status | Meaning |
| --- | --- |
| 403 | Your current plan does not allow access to this feature |

## Search

### Search the .onion index by keyword, string or site: operator.

`GET /api.php`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | yes | Search query; supports the site: operator Example: acme leak |
| `page` | query | integer | no | Page number Example: 1 |

Response fields:

- `status` (string): success on a good response
- `pagination.total_results` (integer): Total matches
- `pagination.total_pages` (integer): Total pages
- `results[].title` (string): Page title
- `results[].url` (string): The .onion URL
- `results[].context` (string): Text snippet around the match

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

Example response (200):

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

## Premium

### List cached snapshot dates of an .onion page, or fetch one snapshot.

`GET /api_history.php`

- Takes: URL
- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | query | string | yes | The .onion URL Example: example.onion |
| `date` | query | string | no | Snapshot date to retrieve in full Example: 2025-05-20 |

Response fields:

- `status` (string): success on a good response
- `url` (string): The URL queried (list mode)
- `available_snapshots` (integer): Number of cached snapshots (list mode)
- `snapshot_dates[]` (string): Snapshot timestamps (list mode)
- `data.snapshot_date` (string): Date of the snapshot (snapshot mode)
- `data.content` (string): HTML content of the snapshot (snapshot mode)

```bash
curl 'https://onionsearchengine.com/api_history.php?url=example.onion' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "success",
  "url": "example.onion",
  "available_snapshots": 2,
  "snapshot_dates": [
    "2025-06-10T10:30:00Z",
    "2025-05-15T08:00:00Z"
  ]
}
```

### Emails and crypto addresses extracted from an .onion site.

`GET /api_metadata.php`

- Takes: URL
- Footprint: passive (the target is not contacted)
- Plan: Premium endpoints

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | query | string | yes | The .onion URL Example: example.onion |

Response fields:

- `status` (string): success on a good response
- `data.url` (string): The URL analysed
- `data.last_analyzed` (string): When the site was last analysed
- `data.emails[]` (string): Email addresses found
- `data.btc_addresses[]` (string): Bitcoin addresses found
- `data.xmr_addresses[]` (string): Monero addresses found

```bash
curl 'https://onionsearchengine.com/api_metadata.php?url=example.onion' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "success",
  "data": {
    "url": "example.onion",
    "last_analyzed": "2025-06-10T10:30:00Z",
    "emails": [
      "admin@example.org"
    ],
    "btc_addresses": [
      "bc1qexampleexampleexampleexample0000"
    ],
    "xmr_addresses": []
  }
}
```

### Inbound or outbound links of an .onion URL.

`GET /api_graph.php`

- Takes: URL
- Footprint: passive (the target is not contacted)
- Plan: Premium endpoints

Maps relationships between hidden services.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | query | string | yes | The .onion URL to analyse Example: example.onion |
| `direction` | query | string | no | in for inbound links, out for outbound links Example: out One of: in, out |

Response fields:

- `status` (string): success on a good response
- `query_details.analyzed_url` (string): The URL analysed
- `query_details.direction` (string): in or out
- `links[]` (string): Linked .onion sites

```bash
curl 'https://onionsearchengine.com/api_graph.php?url=example.onion' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "success",
  "query_details": {
    "analyzed_url": "example.onion",
    "direction": "out"
  },
  "links": [
    "siteb.onion",
    "sitec.onion"
  ]
}
```

### Known CVEs for the software detected on an .onion site.

`GET /api_vulnerabilities.php`

- Takes: URL
- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | query | string | yes | The .onion URL to analyse Example: example.onion |

Response fields:

- `status` (string): success on a good response
- `url` (string): The URL analysed
- `data[].software_name` (string): Detected software
- `data[].cve_id` (string): CVE identifier
- `data[].severity` (string): Severity, for example HIGH or CRITICAL
- `data[].description` (string): Short description of the vulnerability

```bash
curl 'https://onionsearchengine.com/api_vulnerabilities.php?url=example.onion' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "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."
    }
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
