[a-z] [0-9] [abc] 字符集 ·
\d=数字 \a=字母 \w=字母数字 ·
{3}/{1,3} 重复 · (a|b|c) 任选 ·
(\d)\1 同位重复(豹子/AABB)· 其余按字面量
本工具不仅提供网页查询,也提供面向 AI Agent、Claude Code、脚本和自动化工作流的批量域名查询接口。项目内已附带可选 Skill:skills/domain-availability-checker/SKILL.md,用于告诉智能体如何安全分批、低压轮询、解释结果并输出推荐。
什么时候使用 Skill?
/api/check 即可。domain-availability-checker Skill。timeout,以及如何给用户汇总结果。1. 普通 API 调用
/api/checkPOSTapplication/jsondomains。
{
"domains": ["apple.ai", "banana.io", "google.com"]
}
[
{"status":"success","result":"available","domain":"apple.ai"},
{"status":"success","result":"unavailable","domain":"banana.io"},
{"status":"success","result":"timeout","domain":"testxyz12345.com"}
]
2. 状态语义
available:当前看起来可注册。unavailable:当前看起来已注册或不可注册。wait:上游仍在处理,仅在请求中加入 allowWait: true 时返回。timeout:本轮没有落定。不要把它当作已注册,应单独列为“稍后重试”。3. AI Agent / Skill 执行策略
000.ai 到 999.ai。available;timeout 单独列出,说明需要稍后复查。4. 高级低压轮询
普通调用不需要管理 Cookie。如果脚本或 Agent 希望接收中间态 wait 并自行轮询,请使用以下契约:
GET /api/session 获取 cookie。session 字符串。allowWait: true。wait 的域名请求,带 isPoll: true,并复用同一个 session 与 cookie。{
"domains": ["testxyz12345.com"],
"session": "stable_batch_session_001",
"cookie": "WHMCS...; ipaddress=...",
"allowWait": true,
"isPoll": true
}
5. Tool 定义示例
如果你在自定义 Agent 中声明工具,可使用类似结构:
{
"name": "check_domains",
"description": "批量查询域名可用性。适合在用户需要寻找、生成或筛选可注册域名时调用。大量查询应低压分批,timeout 需单独列为待复查。",
"input_schema": {
"type": "object",
"properties": {
"domains": {
"type": "array",
"items": { "type": "string" },
"description": "完整域名列表,例如 [\"getabc.ai\", \"gochat.io\", \"mycode.com\"]"
}
},
"required": ["domains"]
}
}
6. cURL 快速查询
curl -X POST http://localhost:5174/api/check \
-H "Content-Type: application/json" \
-d '{"domains":["apple.ai","google.com","testxyz12345.com"]}'
接口会先执行 DNS 预过滤,再对未解析域名进行低频 WHOIS 查询,以 JSON 返回本轮可确认状态。