Search domains
securitytrails_search_domainsFind domains by filtering on fields like apex_domain, keyword, TLD, MX, NS, CNAME, IPv4, IPv6, or WHOIS email using structured filters or DSL queries.
Instructions
Search the domain dataset by structured filter or DSL query. Valid fields include apex_domain, keyword, tld, mx, ns, cname, ipv4, ipv6 and whois_email — for example {"apex_domain": "example.com"} or "whois_email = 'admin@example.com'". Note that the domain and IP datasets accept different field names: IP-only fields such as ptr_part or open_port_80 are a syntax error here, and belong in securitytrails_search_ips. Exactly one of filter or query is required. Each page costs one API query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-indexed page number; each page costs one API query | |
| query | No | DSL query string, e.g. "ipv4 = '1.2.3.4'" | |
| filter | No | structured filter object, e.g. {"apex_domain": "example.com"} | |
| include_ips | No | include resolved IPs for each domain | |
| response_format | No | "markdown" for a compact human-readable summary, "json" for the full raw API payload | markdown |