Know of an official OpenAPI document? Contribute it →
For Agents
Look up current and historical DNS, WHOIS, subdomains, and associated domains for a hostname, search domains and IPs by filter, and read new-domain feeds for AI agents.
Use for: List all subdomains of example.com, Get the historical A records for a suspicious domain, Retrieve the WHOIS history for a domain, Find all domains associated with the same registrant as a phishing site
Not supported: Does not scan ports, block traffic, or register domains. Use for reading DNS, WHOIS, domain, and IP intelligence only.
Jentic publishes the only available OpenAPI specification for SecurityTrails API, keeping it validated and agent-ready. The SecurityTrails API returns current and historical DNS, WHOIS, domain, and IP intelligence for security investigations. It looks up a hostname's current DNS records, subdomains, tags, associated domains, and parsed WHOIS, and returns historical A, AAAA, MX, NS, SOA, and TXT records and past WHOIS registrations. Filter-based searches find domains and IPs that match DNS or WHOIS attributes, an IP neighbors lookup lists nearby addresses, and a feed returns newly registered domains.
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the SecurityTrails API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fsecuritytrails.com%2Fsecuritytrails" | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fsecuritytrails.com%2Fsecuritytrails" | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with SecurityTrails API.
Look up a hostname's current DNS records and details, its subdomains, and its tags
Retrieve historical DNS records for a hostname by type, such as a, mx, ns, or txt
Read parsed current WHOIS and historical WHOIS records for a domain
Find domains associated with a hostname through shared registrant or DNS data
Search domains or IPs with a filter expression, optionally including IPs in domain results
List neighboring IP addresses in the range around an IP
Pull a feed of newly registered domains for phishing and brand monitoring
Patterns agents use SecurityTrails API for, with concrete tasks.
★ AI agent enriching security alerts
An AI triage agent receives an alert naming a suspicious domain and needs context before escalating. Through Jentic the agent searches by intent, gets the SecurityTrails domain and DNS history operations with their input schemas, and calls them with the APIKEY header injected at execution time. It reports when the domain's A records changed and who registered it.
Call GET /domain/{hostname} and GET /history/{hostname}/dns/{type} with hostname 'suspicious-login.com' and type 'a', then GET /domain/{hostname}/whois, and summarise the hosting changes and registrant
Attack surface discovery
A security team inventories everything exposed under its domains. SecurityTrails lists subdomains for a hostname, with children_only to limit to direct children, and returns associated domains linked by shared registrant or DNS data, revealing forgotten hosts and acquired properties.
Call GET /domain/{hostname}/subdomains for 'example.com', then GET /domain/{hostname}/associated page 1, and produce a deduplicated host inventory
Phishing and brand monitoring
Brand protection teams watch for lookalike domains registered to impersonate them. The SecurityTrails new domains feed returns newly registered domains with a filter, and filter-based domain search finds domains sharing DNS or WHOIS attributes with a known phishing site.
Call GET /feeds/domains with type 'new' and filter set to the brand keyword, then check each match with GET /domain/{hostname}/whois
12 endpoints — jentic publishes the only available openapi specification for securitytrails api, keeping it validated and agent-ready.
METHOD
PATH
DESCRIPTION
/domain/{hostname}
Get domain details
/domain/{hostname}/subdomains
List subdomains
/domain/{hostname}/whois
Get WHOIS data
/history/{hostname}/dns/{type}
Get historical DNS records
/history/{hostname}/whois
Get historical WHOIS records
/search/list
Search domains with filters
/ips/list
Search IPs with filters
/feeds/domains
Newly registered domains feed
/domain/{hostname}
Get domain details
/domain/{hostname}/subdomains
List subdomains
/domain/{hostname}/whois
Get WHOIS data
/history/{hostname}/dns/{type}
Get historical DNS records
/history/{hostname}/whois
Get historical WHOIS records
/search/list
Search domains with filters
/ips/list
Search IPs with filters
/feeds/domains
Newly registered domains feed
This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.
Base layer of spec validity and structural soundness.
Aggregated quality score from linter diagnostics, weighted by severity.
Percentage of `$ref` references that resolve successfully.
Checks whether the API description parses successfully and conforms to its declared specification (e.g., OpenAPI).
Structural correctness score based on schema issues using logarithmic dampening.
Clarity, completeness, and ingestion readiness for developers and tooling.
How richly the API is illustrated with examples.
Percentage of examples that conform to their schemas.
Percentage of operations with complete response definitions (success, client error, server error).
Health of API ingestion, bundling, and resolution within Jentic pipelines.
Semantic breadth, depth, and agent comprehension for AI systems.
Coverage of descriptions across API elements.
Coverage of RFC 9457 Problem Details for error responses.
Coverage, uniqueness, and casing consistency of operationIds for AI inference.
Coverage of summaries across operations/tags/info.
Functional utility, complexity comfort, and AI orchestration readiness.
Agent comfort level based on API operational and structural complexity.
Trust, risk posture, and security compliance.
Average quality of security schemes based on authentication method strength (weakest link for OAuth2).
Findability, semantic richness, and reasoning readiness.
Clarity and depth of descriptions across API elements.
Score it yourself
Every API in the directory is allowlisted, so you can re-score it with no key required.
npx @jentic/api-scorecard-cli score <openapi-url>What agents get from Jentic-routed access to this vendor.
Setup
Wiring SecurityTrails by hand means sending the APIKEY header on every call, paging history results, and building filter objects for domain and IP searches. Through Jentic you install once, import SecurityTrails from the API Directory, store the key once, and your agent calls it.
Permission scoping
SecurityTrails puts the hostname in the URL path (/domain/{hostname}/... and /history/{hostname}/...), so a rule can pin your agent to one domain. You choose the operations it may call, so open-ended filter searches and the new-domains feed are not included unless you add them.
Credential isolation
Your SecurityTrails API key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
Intent-based discovery
Agents search Jentic by intent such as 'get DNS history for a domain' or 'list subdomains', and Jentic returns the matching SecurityTrails operation with its input schema so the agent fills hostname and type correctly.
Alternatives and complements available in the Jentic catalogue.
Specific to using SecurityTrails API through Jentic.
Why is there no official OpenAPI spec for SecurityTrails API?
SecurityTrails does not publish an OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call SecurityTrails API via structured tooling. It is validated against the live API and kept up to date. To run it on your own infrastructure, install Jentic One from its GitHub repo.
What authentication does the SecurityTrails API use?
Per its OpenAPI spec, the SecurityTrails API authenticates with an API key sent in the APIKEY request header, applied to every operation. GET /ping verifies the key. Through Jentic the key is held by your own Jentic One instance and injected per call, so the agent never sees it.
Can I get historical DNS records with the SecurityTrails API?
Yes. GET /history/{hostname}/dns/{type} returns past records for a hostname, with type set to a, aaaa, mx, ns, soa, or txt and a page parameter for older results. GET /history/{hostname}/whois returns past WHOIS registrations.
What are the rate limits for the SecurityTrails API?
The OpenAPI spec does not specify rate limits; check https://docs.securitytrails.com for current plan limits.
Is there a SecurityTrails MCP server?
You don't need an MCP server to give your agent SecurityTrails. Jentic connects it directly from the API Directory: import it, store your API key once, and your agent calls the DNS, WHOIS, and search operations on demand.
How do I list subdomains for a domain through Jentic?
Search Jentic for 'list subdomains of a domain', load the GET /domain/{hostname}/subdomains operation, and execute it with the hostname and optionally children_only set to true.
Can I limit what my agent is allowed to do with the SecurityTrails API?
Yes. For example, write a rule that allows only GET /domain/{hostname}/whois and GET /history/{hostname}/dns/{type} for hostname example.com, and the agent can investigate that one domain without running open-ended filter searches. Every call it makes is logged.
GET STARTED