Search Internet Assets Accurately & Instantly.
Read the docs https://docs.securitytrails.com/
curl --request GET \
--url 'https://api.securitytrails.com/v1/domain/<DOMAIN-HERE>/subdomains?children_only=false' \
--header 'APIKEY: <KEY-HERE>' \
--header 'Accept: application/json'
This requires jq to be installed.
jq '.subdomains[]' securitytrails.json