Fetch Subdomains
Fetch subdomains for a given domain using the Chaos API.
Path Parameters
Parameters that are part of the URL path.
domainstringrequiredDomain for which you want to fetch subdomains.
Header Parameters
Parameters that are part of the request header.
AuthorizationstringrequiredAPI key for authentication. See the API Key page for how to obtain one.
Structure
GET /dns/{domain}/subdomains
Host: dns.projectdiscovery.io
Authorization: API_KEY
Connection: close{"domain":"domain","subdomains":[...],"count":1337}Subdomains are returned as relative labels. Prefix each label to the root domain to get the full host, e.g. www + lovable.app = www.lovable.app.
Example
curl -X GET "https://dns.projectdiscovery.io/dns/lovable.app/subdomains" \
-H "Authorization: API_KEY" \
-H "Connection: close"{"domain":"lovable.app","subdomains":["www","connect","yt",...],"count":9948}