Find all subdomains of any domain

Use our subdomain finder tools to discover the subdomains of any target domain name. Map web infrastructure, identify overlooked assets, and uncover potential security exposure.

500 free API requests. No credit card required.

Try an example

9.6 Billion+

Subdomains

15 Million+

Subdomains discovered daily

52,000+

Satisfied customers

15+

Years of data crawling

Choose how you want to find subdomains

Choose a subdomain finder product that fits your workflow. Search in your browser, automate with an API, download the full dataset, or ask an AI assistant.

Subdomain Lookup API

With one API call, get a list of all subdomains related to a given domain name, with first-seen and last-seen timestamps. Responses come in JSON or XML, so you can automate subdomain enumeration in your own scripts and security workflows.

Best for: security automation

500 free API requests. No credit card required.

Sample request

GET https://subdomains.whoisxmlapi.com/api/v1?apiKey=YOUR_API_KEY&domainName=example.com&outputFormat=JSON

Sample JSON response

{
  "search": "example.com",
  "result": {
    "count": 4,
    "records": [
      {
        "domain": "www.example.com",
        "firstSeen": 1402358400,
        "lastSeen": 1791331200
      },
      {
        "domain": "mail.example.com",
        "firstSeen": 1421625600,
        "lastSeen": 1791244800
      },
      {
        "domain": "api.example.com",
        "firstSeen": 1536624000,
        "lastSeen": 1791417600
      },
      {
        "domain": "dev.example.com",
        "firstSeen": 1553644800,
        "lastSeen": 1790553600
      }
    ]
  }
}

What is a subdomain finder?

A subdomain finder, or subdomain discovery tool, helps identify subdomains associated with a root domain, such as api.example[.]com, shop.example[.]com, or support.example[.]com. Subdomains can point to different websites, applications, APIs, development environments, and other internet-facing services.

Organizations and security teams use subdomain discovery to better understand a domain's web infrastructure, identify assets that may have been forgotten or overlooked, and investigate infrastructure connected to domains of interest.

Magnifying glass over a globe and its subdomains
Subdomains Lookup

Get 500 free API credits.
No credit card required.

Get started

Why use WhoisXML API's subdomain discovery tools?

Comprehensive and up-to-date

Access a database of more than 9.6 billion subdomain records collected over 15 years of data crawling. The database is updated daily, with more than 15 million subdomains discovered each day, helping you identify both previously observed and newly discovered subdomains.

Ready-to-use data

Skip the time-consuming process of collecting, parsing, and combining raw subdomain data from multiple sources. WhoisXML API Subdomain Finder products provide structured subdomain records that you can use for asset discovery, security investigations, and automated workflows.

Non-intrusive discovery

Our subdomain finder pulls results from data we've already collected, including passive DNS data, SSL/TLS certificates, and certificate transparency logs. That means you can find subdomains of any domain without active scanning or sending queries to the target's servers, so your research stays out of their logs.

What can you do with subdomain intelligence?

Asset management

Subdomain enumeration helps organizations find all subdomains of a domain, including forgotten or overlooked subdomains (e.g., shadow IT). This list is combined with other digital assets, allowing security professionals to map out attack surfaces for security assessments or bug bounty hunting.

Asset management

Vulnerability scanning and penetration testing

Once you have a list of subdomains, you can start checking each subdomain for security issues, such as misconfigurations, outdated software, unpatched systems, and vulnerabilities. A forgotten or unmanaged subdomain can be a major entry point for attackers, and vulnerability scanners or penetration testers can uncover these weak spots.

Vulnerability scanning and penetration testing

Subdomain takeover research

Security researchers and bug bounty hunters use subdomain discovery to investigate suspicious infrastructure and identify potential security risks. For example, subdomains with dangling DNS records may be vulnerable to subdomain takeover, potentially allowing attackers to host unauthorized content under a legitimate domain.

Subdomain takeover research

Website infrastructure management

Subdomain intelligence can also be used for managing the website infrastructure since a subdomains list can help developers visualize how different services (e.g., blog., api., support.) are hosted and interconnected.

Website infrastructure management

Frequently Asked Questions

A subdomain is a domain name that sits under another domain in the Domain Name System (DNS). Subdomains are commonly used to organize websites, applications, and services under a single registered domain.

For example, in blog.example[.]com, blog is the subdomain label, example[.]com is the registered domain, and .com is the top-level domain (TLD). One may say that blog.example[.]com is a subdomain of example[.]com.

Subdomains can point to different servers or services, but they do not necessarily host separate websites.

When you perform a subdomain lookup (whether with the API or the lookup tool), the tool lists all subdomains of a domain name that it was able to discover. While no subdomain lookup tool can guarantee 100% coverage, ours is known to be high due to the high quality of the data that powers subdomain discovery. It will also show the dates when they were first seen and last updated.

When you use the WhoisXML API's Subdomain Lookup tool, the request is sent to a massive, precompiled database that was built over the course of more than 10 years through continuous passive subdomain discovery techniques, such as DNS record analysis and browsing SSL certificates and certificate transparency logs.

This subdomains database is updated daily to ensure that the data remains as accurate and fresh as possible, especially given that the Subdomain Lookup is commonly used as a recon tool.

WhoisXML API's Subdomain Lookup stands out for its speed and accuracy. It returns a list of subdomains for any given root domain within a few seconds. In addition, the subdomain discovery tool uses a combination of techniques, including advanced algorithms and a regularly updated historical DNS records database, to provide a comprehensive list of subdomains. The subdomain data can be accessed through three different consumption models:

  • Subdomains Lookup API: this consumption model is designed for developers and technical users who want to integrate the API into their own applications, scripts, or workflows to perform large-scale, automated subdomain searches and retrieve the data in a structured format like JSON or XML. Subdomain Lookup API can now be accessed using your favorite LLM, with WhoisXML API's MCP server, using the same API key.
  • Subdomains Lookup GUI: this is a web-based and user-friendly subdomain discovery tool where users can enter a domain name into the search bar, click the “Lookup” button, and review the results directly on the webpage.
  • Subdomains Database Download: this model is for users who require the entire dataset for offline analysis or integration into their internal systems. Instead of making individual queries, users can download the complete database of subdomains in large CSV files.

Yes, WhoisXML API provides highly accurate and regularly updated subdomain data, as it pulls information from multiple sources, including DNS records and certificate transparency logs.

Yes, you can automate subdomain lookups using the Subdomains Lookup API. The API responses are in JSON and XML formats, making the tool compatible with popular coding languages. Please check the API docs to see how to use the API in your workflows.

Yes, but you'll need a different tool. Our Subdomains Lookup API only accepts domain names as input to discover their subdomains. However, our Reverse IP API lets you search by IP address to identify associated domains and subdomains. Keep in mind that the results depend on available DNS data and may not include every hostname associated with the IP address.

Trusted by
the smartest
companies

You may be interested

Have questions?

We are here to listen. For a quick response, please select your request type. By submitting a request, you agree to our Terms of Service and Privacy Policy.

Sales
Technical Support
Account issues
Product customization

Message sent!

We'll contact you shortly.

Oops!

Something went wrong. Contact us via regular email.