Skip to content
OSINTtools.io

Pentest-Tools.com Subdomain Finder API

Online subdomain finder that combines passive sources and brute force, adding DNS, IP, tech and WHOIS details.

Base URL
https://api.pentest-tools.com/api/v2
Sign-in
Bearer token
Format
REST
Endpoints
3

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

Introduction

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.

Quick start

  1. Get a key

    Create an account with Pentest-Tools.com Subdomain Finder and copy your bearer token. Where to get it

  2. Make your first request

    Status and summary of a scan.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.pentest-tools.com/api/v2/scans/100001' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "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
      }
    }

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

Get a key from Pentest-Tools.com Subdomain Finder

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

Rate limits and pricing

Per user: GET 250 per minute, POST and DELETE 125 per minute, /scans/{id}/output 60 per minute

Errors

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

Subdomain Finder

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

Request body (JSON) · 7Show

tool_idintegeralways present

Scanner to run; 20 is Subdomain Finder

target_namestring

Domain to scan (use this or target_id)

target_idinteger

Existing target ID (use this or target_name)

scan_typestring

light, deep (default) or custom

web_detailsboolean

Extract web server information; longer scan (default true)

whoisboolean

Extract whois information (default false)

unresolved_resultsboolean

Keep unresolved subdomains without an IP (default false)

Response fields · 3Show

idinteger

Scan ID

tool_idinteger

Scanner used

status_namestring

running, finished, failed to start, stopped, timed out, waiting, aborted and similar

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}}'
Replace YOUR_API_KEY with your key
Response
{
  "data": {
    "id": 100001,
    "tool_id": 20,
    "status_name": "running"
  }
}
  • Passive: the target is not contacted
  • Plan: Paid plan

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

Path parameters

idintegerrequired

Scan ID

Example: 100001
Response fields · 7Show

idinteger

Scan ID

tool_idinteger

Scanner used

status_namestring

Scan status

progressinteger

Progress, 0 to 100

start_timestring

Start time

end_timestring

End time; null until finished

durationinteger

Duration in seconds

curl 'https://api.pentest-tools.com/api/v2/scans/100001' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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
  }
}
  • 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.

Path parameters

idintegerrequired

Scan ID

Example: 100001
Response fields · 7Show

output_typestring

subdomain_list for the Subdomain Finder

hostnamestring

Subdomain found

ip_addressstring

IP address, or empty if unresolved

serverstring

Web server, if web details were requested

page_titlestring

Page title, if web details were requested

whois_countrystring

Whois country, if requested

sources[]string

Discovery methods that found it

curl 'https://api.pentest-tools.com/api/v2/scans/100001/output' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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"
          ]
        }
      ]
    }
  }
}