# Pentest-Tools.com Subdomain Finder API reference

> The Pentest-Tools.com API runs the platform's scanners, including the Subdomain Finder (tool_id 20), and returns their output. A subdomain scan is started with POST /scans, followed through GET /scans/{id}, and read with GET /scans/{id}/output, which lists subdomains with IP address, optional web…

Source: https://osinttools.io/apis/pentest-tools-subdomain-finder/ (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/pentest-tools-subdomain-finder/

- Base URL: https://api.pentest-tools.com/api/v2
- Authentication: Bearer token in the `Authorization` header. Get a key: https://pentest-tools.com/
- Rate limits: Per user: GET 250 per minute, POST and DELETE 125 per minute, /scans/{id}/output 60 per minute
- Vendor docs: https://pentest-tools.com/docs/api-reference
- OpenAPI spec: https://api.pentest-tools.com/api-schema.yml

## Overview

The Pentest-Tools.com API runs the platform's scanners, including the Subdomain Finder (tool_id 20), and returns their output. A subdomain scan is started with `POST /scans`, followed through `GET /scans/{id}`, and read with `GET /scans/{id}/output`, which lists subdomains with IP address, optional web details, whois data and the discovery sources.

Calls use `Authorization: Bearer YOUR_API_KEY`; the key is created under My account > API. API access needs a paid plan. The scan runs on Pentest-Tools.com servers and can contact the target's infrastructure, so only scan domains you are allowed to test.

## Errors

| Status | Meaning |
| --- | --- |
| 401 | API key missing or invalid |
| 403 | Forbidden, for example no paid plan |
| 404 | Object not found |
| 429 | Too many requests |

## Subdomain Finder

### Start a scan; tool_id 20 is the Subdomain Finder.

`POST /scans`

- Takes: Domain
- Footprint: active (contacts the target)
- Plan: Paid plan

Starts a scan on a target name. Poll the scan until its status is finished.

Response fields:

- `data.id` (integer): Scan ID
- `data.tool_id` (integer): Scanner used
- `data.status_name` (string): running, finished, failed to start, stopped, timed out, waiting, aborted and similar

```bash
curl -X POST 'https://api.pentest-tools.com/api/v2/scans' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"tool_id":20,"target_name":"example.com","tool_params":{"scan_type":"light","web_details":false}}'
```

Example response (200):

```json
{
  "data": {
    "id": 100001,
    "tool_id": 20,
    "status_name": "running"
  }
}
```

### Status and summary of a scan.

`GET /scans/{id}`

- Footprint: passive (the target is not contacted)
- Plan: Paid plan

Returns progress and times. For results see /scans/{id}/output.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | Scan ID Example: 100001 |

Response fields:

- `data.id` (integer): Scan ID
- `data.tool_id` (integer): Scanner used
- `data.status_name` (string): Scan status
- `data.progress` (integer): Progress, 0 to 100
- `data.start_time` (string): Start time
- `data.end_time` (string): End time; null until finished
- `data.duration` (integer): Duration in seconds

```bash
curl 'https://api.pentest-tools.com/api/v2/scans/100001' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "data": {
    "id": 100001,
    "tool_id": 20,
    "status_name": "finished",
    "progress": 100,
    "start_time": "2026-01-01 12:00:00",
    "end_time": "2026-01-01 12:02:00",
    "duration": 120
  }
}
```

### Output of a finished scan (subdomain list for tool 20).

`GET /scans/{id}/output`

- Footprint: passive (the target is not contacted)
- Plan: Paid plan

Returns JSON by default; send Accept: application/pdf for a PDF. Limited to 60 requests per minute.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | Scan ID Example: 100001 |

Response fields:

- `data.output_type` (string): subdomain_list for the Subdomain Finder
- `data.output_data.subdomains[].hostname` (string): Subdomain found
- `data.output_data.subdomains[].ip_address` (string): IP address, or empty if unresolved
- `data.output_data.subdomains[].server` (string): Web server, if web details were requested
- `data.output_data.subdomains[].page_title` (string): Page title, if web details were requested
- `data.output_data.subdomains[].whois_country` (string): Whois country, if requested
- `data.output_data.subdomains[].sources[]` (string): Discovery methods that found it

```bash
curl 'https://api.pentest-tools.com/api/v2/scans/100001/output' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "data": {
    "output_type": "subdomain_list",
    "output_data": {
      "subdomains": [
        {
          "hostname": "www.example.com",
          "ip_address": "203.0.113.7",
          "server": null,
          "page_title": null,
          "whois_country": null,
          "sources": [
            "DNS Records",
            "Certificate Transparency"
          ]
        }
      ]
    }
  }
}
```

---

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/
