Usage and endpoints for RapidDNS API
RapidDNS API supports two modes: Keyword Search and Advanced Query. Requests use GET and return JSON with record details. Authentication via Bearer tokens; higher memberships unlock larger limits.
To access the API, you need a valid API Key. This key is available to Pro and Max users.
Include your key in the request header as shown below:
X-API-KEY: rdns_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Keep your API Key secure. Do not share it publicly. You can regenerate it at any time from your profile if it gets compromised.
GET /api/search/<keyword> — keyword search (domain, IP, or CIDR)GET /api/search/query/<query> — advanced query syntaxMethod: GET
Access path pattern:
https://rapiddns.io/api/search/<keyword>?page=1&pagesize=100
Query parameters:
pagesize — page size per requestpage — page index to fetchsearch_type — (Optional) Force search type: subdomain, same_domain, ip, ip_segment. If not provided, it is auto-detected.Subdomain search:
https://rapiddns.io/api/search/tesla.com?page=1&pagesize=100
Reverse IP:
https://rapiddns.io/api/search/172.217.3.174?page=1&pagesize=100
Reverse IP range (CIDR):
https://rapiddns.io/api/search/129.134.0.0/16?page=1&pagesize=100
Successful responses return JSON:
{
"status": 200,
"msg": "ok",
"data": {
"total": 45,
"status": "ok",
"data": [
{
"type": "A",
"value": "162.159.0.31",
"timestamp": "2023-03-02T08:14:42+00:00",
"date": "2023-03-02",
"subdomain": "a.ns.hackerone.com"
},
{
"type": "AAAA",
"value": "2606:4700::6810:6334",
"timestamp": "2023-02-23T12:17:10+00:00",
"date": "2023-02-23",
"subdomain": "hackerone.com"
}
]
}
}
Fields:
data.total — total record countdata.data — array of recordsrecord.subdomain, record.type, record.value, record.timestamp, record.dateUse page and pagesize to paginate results.
200 Success400 Parameter error401 Invalid or expired token403 Insufficient permissions404 Not found429 Rate limit exceeded5xx Server errorUse /api/search/query/<query> for syntax-based searches. Queries use Elasticsearch query_string with default operator AND.
domain, tld, subdomain, value, type, is_rootAND, OR, NOTsubdomain:"a.ns.hackerone.com"subdomain:apple.com*); leading wildcards are not allowed
domain:apple AND tld:com
type:A AND value:"172.217.3.174"
subdomain:apple.com*
value:"129.134.0.0/16"