API
Query the DomainsProject dataset over HTTPS. Subdomain search is available now.
Endpoints
Subdomain Search
Returns the hostnames (FQDNs) under a domain that appear in the DomainsProject dataset. Pass the domain in the domain query parameter.
GET https://api.domainsproject.org/api/tld/search?domain=google.com
Authentication. Every request needs a username and password, sent with HTTP Basic authentication.
curl -u 'USERNAME:PASSWORD' \
'https://api.domainsproject.org/api/tld/search?domain=google.com'
Response
{"domains":["--spf.google.com","-_spf.google.com","-spf.google.com"]}
A JSON object with one field, domains: an array of hostnames.
Integrations
subfinder
DomainsProject is a built-in source in ProjectDiscovery's subfinder (v2.10.0 and later). Add your credentials to subfinder's provider config, ~/.config/subfinder/provider-config.yaml:
domainsproject:
- USERNAME:PASSWORD
With credentials set, subfinder queries DomainsProject in its default runs. To query only DomainsProject:
subfinder -d google.com -s domainsproject
Access
Credentials
API credentials are included with the Active domains plan and every plan above it.