开发者参考

域名资料 API 文档

域名资料 API 文档: 获取规范化的 RDAP 注册数据,包括注册商、创建日期、过期时间、名称服务器、DNSSEC 状态和联系方式摘要。为方便起见,包括预先计算的域名年龄和距到期时间天数。

域名资料

获取规范化的 RDAP 注册数据,包括注册商、创建日期、过期时间、名称服务器、DNSSEC 状态和联系方式摘要。为方便起见,包括预先计算的域名年龄和距到期时间天数。

GET /v1/profile

查询参数

参数类型说明
domain 必需 string 完整域名(例如 github.com)

响应字段

字段类型说明
age_daysnumber域名自注册以来的年龄(天)
days_until_expirynumber域名过期前的天数
dnssecbooleanDNSSEC 是否启用
statusarrayEPP 状态代码(clientDeleteProhibited 等)

请求示例

curl "https://domscan.net/v1/profile?domain=github.com"
const response = await fetch(
  "https://domscan.net/v1/profile?domain=github.com"
);
const data = await response.json();

console.log(`Domain age: ${data.age_days} days`);
console.log(`Expires in: ${data.days_until_expiry} days`);
console.log(`DNSSEC: ${data.dnssec ? 'Enabled' : 'Disabled'}`);
import requests

response = requests.get(
    "https://domscan.net/v1/profile",
    params={"domain": "github.com"}
)
data = response.json()

print(f"Domain age: {data['age_days']} days ({data['age_days'] // 365} years)")
print(f"Expires in: {data['days_until_expiry']} days")

响应示例

{
  "domain": "github.com",
  "registered": true,
  "registrar": "MarkMonitor Inc.",
  "registrar_url": "https://www.markmonitor.com",
  "created_date": "2007-10-09T18:20:50Z",
  "updated_date": "2024-09-08T09:19:27Z",
  "expiry_date": "2026-10-09T07:00:00Z",
  "age_days": 6310,
  "days_until_expiry": 628,
  "nameservers": ["dns1.p08.nsone.net", "dns2.p08.nsone.net"],
  "dnssec": true,
  "status": ["clientDeleteProhibited", "clientTransferProhibited"],
  "contacts": {
    "registrant_name": "GitHub, Inc.",
    "registrant_org": "GitHub, Inc.",
    "registrant_country": "US"
  },
  "privacy": {
    "is_private": false,
    "privacy_service": null
  }
}
GET /v1/overview

查询参数

参数 类型 必需
domain string 必需

响应字段

字段 类型
domain string
health object
health.dns_ok boolean
health.https_ok boolean
dns object
dns.has_a boolean
dns.has_aaaa boolean
dns.has_mx boolean
dns.nameservers[] string[]
registration object
registration.registered boolean
registration.registrar string | null
registration.created_date string | null
registration.expiry_date string | null
registration.age_days integer | null
registration.days_until_expiry integer | null
registration.dnssec boolean
reputation object
reputation.score number | null
reputation.grade string | null
query_time_ms integer
checked_at string

请求示例

curl -H "X-API-Key: $DOMSCAN_API_KEY" "https://domscan.net/v1/overview?domain=example.com"

响应示例

{
  "domain": "example.com",
  "health": {
    "dns_ok": true,
    "https_ok": true
  },
  "dns": {
    "has_a": true,
    "has_aaaa": true,
    "has_mx": true,
    "nameservers": [
      "string"
    ]
  },
  "registration": {
    "registered": true,
    "registrar": "string",
    "created_date": "2026-04-15",
    "expiry_date": "2026-04-15",
    "age_days": 1,
    "days_until_expiry": 1,
    "dnssec": true
  },
  "reputation": {
    "score": 1,
    "grade": "string"
  },
  "query_time_ms": "2026-04-15T12:00:00Z",
  "checked_at": "2026-04-15T12:00:00Z"
}

被出色公司的人们使用

VercelLLM PulseOLXCasa ModernaPipeCal.comBeehiivSnykTogglRemoteSprigDeel