Subdomain Discovery API
Identify Known Subdomains for any Domain
Our Subdomain Discovery API provides a comprehensive list of subdomains associated with a given domain, leveraging our industry-leading domain name data.
Use it to uncover hidden infrastructure, monitor domain exposure, and enhance your asset discovery workflows.
Get Started for FreeWhy Choose ViewDNS.info Subdomain Discovery API?
- Identify Assets Belonging to Your Organisation
- Constant Updates Ensure Up-To-Date Results
- Identify Relationships Between Domains
- Highly Scalable to meet Business Needs
- Subscription Includes Access to ALL ViewDNS.info APIs
Our Valued Customers Include:
Key Subdomain Discovery API Features
Up-to-date Data
Our API leverages a backend that continuously monitors and indexes subdomain data across hundreds of millions of domains, ensuring the most up-to-date and comprehensive subdomain results are available.
Asset Discovery
Our Subdomain Discovery API allows for the discovery of potentially unknown assets used by your organisation in order to ensure you have a comprehensive picture of your internet footprint.
Identify Connections
Our API reveals connections between domain names that may appear unrelated by uncovering shared or structurally similar subdomains.
Highly Scalable
Our Subdomain Discovery API employs a highly scalable backend ensuring that even high volume searches are met with the highest success rate.
Usage Details
Finds all known subdomains for a given domain name.
/subdomains GET
https://api.viewdns.info/subdomains/
Search by domain name. By default, the first 1,000 results are returned.
Parameters
-
apikeyrequiredYour API key associated with your ViewDNS.info account.
-
domainrequiredThe domain name to retrieve subdomains for (e.g., example.com).
-
pageoptional (default=1)The page of results to display (e.g. '2' to view results 1,001 to 2,000).
-
outputoptional (default=json)The output format required (
'xml'or'json').
Sample Request Live Demo!
https://api.viewdns.info/subdomains/?domain=example.com&apikey=demo&output=json
Sample Response
{
"query": {
"tool": "subdomains_PRO",
"domain": "example.com"
},
"response": {
"subdomain_count": "5",
"total_pages": "1",
"current_page": "1",
"subdomains": [
{
"name": "dev.example.com",
"ips": [],
"last_resolved": null
},
{
"name": "m.example.com",
"ips": [],
"last_resolved": null
},
{
"name": "products.example.com",
"ips": [],
"last_resolved": null
},
{
"name": "support.example.com",
"ips": [],
"last_resolved": null
},
{
"name": "www.example.com",
"ips": [],
"last_resolved": null
}
]
}
}
Code Example