DNS 与基础设施 · DomScan 产品

子域名查找器 API 参考

使用各种枚举技术发现域名的子域名。

你将获得什么

使用各种枚举技术发现域名的子域名。

同步批量RESTMCPSDK交互式工具

适合选择此产品的场景

适用对象

将此套件用于故障排查、迁移检查、基础设施研究和安全审查。

适合选择此产品的场景

需要收集观测到的公开子域名证据时选择。缺少某个名称不证明不存在子域名。

你将获得什么

使用各种枚举技术发现域名的子域名。

端点

集成之前,先了解每个端点接受和返回的内容、支持的模式及其限制。

GET /v1/subdomains 查看 API 参考
POST /v1/subdomains/bulk 查看 API 参考

积分和身份验证

4-5 需要身份验证。确切费用(包括按项目计价的部分)请参阅 API 参考。

操作示例

使用文档化的操作来收集、评估、补充、验证、比较、保护或监测公开证据。

GET/v1/subdomains积分: 4-5

查询参数

参数类型必需
domainstring必需
sourcesstring
允许的值 ct
默认值 ct
可选
verifystring
允许的值 truefalse10yesno
默认值 false
可选
include_wildcardsstring
允许的值 truefalse10yesno
默认值 false
可选
limitinteger
默认值 500
可选
prefer_cachestring
允许的值 truefalse10yesno
默认值 false
可选
cursorstring可选

响应字段

字段类型
has_moreboolean
next_cursorstring | null
cache_age_sinteger
domainstring
subdomains[]object[]
subdomains[]object
subdomains[].namestring
subdomains[].sourcestring
subdomains[].first_seenstring | null
subdomains[].verifiedboolean | null
subdomains[].dns_recordsobject
subdomains[].dns_records.A[]string[]
subdomains[].dns_records.AAAA[]string[]
subdomains[].dns_records.CNAMEstring | null
wildcards[]object[]
wildcards[]object
wildcards[].patternstring
wildcards[].sourcestring
wildcards[].first_seenstring | null
summaryobject
summary.total_foundinteger
summary.returnedinteger
summary.verified_countinteger
summary.unverified_countinteger
summary.verification_unknown_countinteger
summary.sources_used[]string[]
summary.apex_includedboolean
summary.wildcard_suppressed_countinteger
summary.wildcard_returned_countinteger
intelligence_summaryobject
intelligence_summary.data_sources[]string[]
intelligence_summary.source_countinteger
intelligence_summary.cache_statusstring
intelligence_summary.returned_countinteger
intelligence_summary.total_foundinteger
intelligence_summary.truncatedboolean
intelligence_summary.limitinteger
intelligence_summary.verification_requestedboolean
intelligence_summary.include_wildcardsboolean
intelligence_summary.verified_countinteger
intelligence_summary.verified_rationumber | null
intelligence_summary.live_dns_record_countinteger
intelligence_summary.apex_includedboolean
intelligence_summary.wildcard_suppressed_countinteger
intelligence_summary.wildcard_returned_countinteger
intelligence_summary.first_seen_oldeststring | null
intelligence_summary.first_seen_neweststring | null
intelligence_summary.warning_countinteger
warnings[]string[]
metaobject
meta.query_time_msinteger
meta.cachedboolean
meta.staleboolean

请求示例

curl -H "X-API-Key: $DOMSCAN_API_KEY" "https://domscan.net/v1/subdomains?domain=example.com&sources=ct&verify=yes&include_wildcards=1&limit=500&prefer_cache=false"
const response = await fetch("https://domscan.net/v1/subdomains?domain=example.com&sources=ct&verify=yes&include_wildcards=1&limit=500&prefer_cache=false", {
  headers: { "X-API-Key": process.env.DOMSCAN_API_KEY },
});
const data = await response.json();
console.log(data);
import os
import requests

response = requests.get(
    "https://domscan.net/v1/subdomains?domain=example.com&sources=ct&verify=yes&include_wildcards=1&limit=500&prefer_cache=false",
    headers={"X-API-Key": os.environ["DOMSCAN_API_KEY"]},
)
print(response.json())
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, err := http.NewRequest(http.MethodGet, "https://domscan.net/v1/subdomains?domain=example.com&sources=ct&verify=yes&include_wildcards=1&limit=500&prefer_cache=false", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("X-API-Key", os.Getenv("DOMSCAN_API_KEY"))

	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	data, err := io.ReadAll(resp.Body)
	if err != nil {
		panic(err)
	}
	fmt.Println(resp.Status, string(data))
}
require "json"
require "net/http"

uri = URI("https://domscan.net/v1/subdomains?domain=example.com&sources=ct&verify=yes&include_wildcards=1&limit=500&prefer_cache=false")
request = Net::HTTP::Get.new(uri)
request["X-API-Key"] = ENV.fetch("DOMSCAN_API_KEY")

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
  http.request(request)
end
puts JSON.pretty_generate(JSON.parse(response.body))

响应示例

{
  "domain": "example.com",
  "subdomains": [
    {
      "name": "api.example.com",
      "source": "crtsh",
      "first_seen": "2025-01-15T00:00:00Z",
      "verified": true,
      "dns_records": {
        "A": [
          "example"
        ],
        "AAAA": [
          "example"
        ],
        "CNAME": "example"
      }
    }
  ],
  "summary": {
    "total_found": 1,
    "returned": 1,
    "verified_count": 1,
    "unverified_count": 1,
    "verification_unknown_count": 1,
    "sources_used": [
      "ct"
    ],
    "apex_included": false,
    "wildcard_suppressed_count": 1,
    "wildcard_returned_count": 1
  },
  "intelligence_summary": {
    "data_sources": [
      "ct"
    ],
    "source_count": 1,
    "cache_status": "live",
    "returned_count": 1,
    "total_found": 1,
    "truncated": false,
    "limit": 1,
    "verification_requested": false,
    "include_wildcards": false,
    "verified_count": 1,
    "verified_ratio": 0.5,
    "live_dns_record_count": 1,
    "apex_included": false,
    "wildcard_suppressed_count": 1,
    "wildcard_returned_count": 1,
    "first_seen_oldest": "example",
    "first_seen_newest": "example",
    "warning_count": 1
  },
  "meta": {
    "query_time_ms": 1,
    "cached": false,
    "stale": false
  },
  "has_more": false,
  "next_cursor": "example",
  "cache_age_s": 1,
  "wildcards": [
    {
      "pattern": "*.example.com",
      "source": "ct",
      "first_seen": "example"
    }
  ],
  "warnings": [
    "example"
  ]
}

HTTP 状态码

  • 200 成功
  • 202 已接受
  • 400 请求错误
  • 401 未授权
  • 402 需要付款
  • 429 请求过多
  • 503 服务不可用
  • 504 网关超时

常见问题

在哪里可以找到 子域名查找器 的请求和响应参考?

使用 子域名查找器 的 API 参考来查看参数、响应字段、示例、状态码和支持的操作模式。

应如何解读 子域名查找器 返回的未知或不完整结果?

“未知”或“部分”表示我们无法完全确认结果。请在据此采取行动时,留意状态、置信度、时效性和任何限制。

子域名查找器 如何计费?

价格取决于检查类型和您选择的模式。API 参考会显示当前的积分消耗、是否需要 API 密钥以及按项目计价的信息。

客户评价

4.9/5,基于 34 条已验证买家评价

Having those checks in one place is what sold me on DomScan.

已验证买家 · 2026年11月

It suits the domain hunts, watching certificates and domain expiry hassles I have done manually for years.

已验证买家 · 2026年11月

被这些公司的人员使用

InstantOutseerMongoDBRespondentSage Expense ManagementInstantlyD.R. HortonWhatConvertsAdobeLLM Pulse