SecurityTrails
Current and historical DNS, subdomains and WHOIS data
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API keySecretRequired
Where to find them
- Sign in at securitytrails.com with your account and open securitytrails.com/app/account/credentials.
- Click “Create New API Key”, write a note and copy the key. Each query uses part of the plan's monthly quota; GET /account/usage shows what has been used.
Tools (3)
SecurityTrails API request
SECURITYTRAILS_SEND_REQUESTAuthenticated call to the SecurityTrails API (https://api.securitytrails.com/v1). Any endpoint of the API is allowed. Examples: GET /domain/{domain}, GET /domain/{domain}/subdomains, GET /domain/{domain}/tags, GET /domain/{domain}/whois, GET /history/{domain}/dns/a (also aaaa, mx, ns, soa, txt), GET /history/{domain}/whois, GET /domain/{domain}/associated, POST /domains/list {"filter": {"ipv4": "1.2.3.4"}} (domains that point to an IP), GET /account/usage.
Required scopes
No scopes required
Input
SecurityTrails API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Subdomains
SECURITYTRAILS_LIST_SUBDOMAINSKnown subdomains of a domain (passive DNS), already complete (e.g. api.example.com). Uses 1 query of the monthly quota.
Required scopes
No scopes required
Input
Subdomains input Name Type Description domainrequiredstringDomain, e.g. example.com Current DNS of a domain
SECURITYTRAILS_GET_DOMAINCurrent DNS records of a domain (A, AAAA, MX, NS, SOA and TXT, with since when they are seen and how many domains share each value) and number of subdomains. Uses 1 query of the monthly quota.
Required scopes
No scopes required
Input
Current DNS of a domain input Name Type Description domainrequiredstringDomain, e.g. example.com

