{"openapi":"3.0.0","info":{"title":"ALAPI接口平台","description":"ALAPI接口平台，官方地址：www.alapi.cn,免费提供数百款接口供开发者使用","version":"3.0.0","contact":{"name":"ALAPI","url":"https:\/\/www.alapi.cn"}},"servers":[{"url":"https:\/\/v3.alapi.cn","description":"ALAPI 接口域名地址"}],"paths":{"\/api\/whois":{"post":{"summary":"域名Whois查询","description":"域名Whois查询，查询域名注册信息","parameters":[],"responses":{"200":{"description":"成功响应","content":{"application\/json":{"schema":{"allOf":[{"$ref":"#\/components\/schemas\/BaseResponse"},{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Response_50"}}}]},"example":{"request_id":"726493452858130432","success":true,"message":"success","code":200,"data":{"domain":"baidu.com","is_reg":true,"suffix":"com","name_server":["ns1.baidu.com","ns2.baidu.com","ns3.baidu.com","ns4.baidu.com","ns7.baidu.com"],"creation_date":"1999-10-11T11:05:17Z","expiration_date":"2026-10-11T11:05:17Z","registrar":"MarkMonitor Inc.","registrant_phone":"+1.2086851750","registrant_email":"abusecomplaints@markmonitor.com","domain_status":["clientDeleteProhibited","clientTransferProhibited","clientUpdateProhibited","serverDeleteProhibited","serverTransferProhibited","serverUpdateProhibited"]},"time":1734169538,"usage":1}}}},"400":{"description":"请求失败","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"security":[{"apiKey":[]}],"externalDocs":{"url":"https:\/\/www.alapi.cn\/api\/25\/api_document","description":"域名Whois查询官方接口文档"},"requestBody":{"description":"JSON 格式的请求参数","required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"要查询的域名"}},"required":["domain"]}}}}}}},"components":{"schemas":{"BaseResponse":{"type":"object","properties":{"code":{"type":"integer","default":200},"request_id":{"type":"string"},"message":{"type":"string","default":"success"},"time":{"type":"integer"},"usage":{"type":"integer"}}},"ErrorResponse":{"type":"object","properties":{"code":{"type":"integer","default":400},"request_id":{"type":"string"},"message":{"type":"string","default":"error"},"data":{"type":"string","default":""},"time":{"type":"integer"},"usage":{"type":"integer"}}},"Response_50":{"type":"object","properties":{"is_reg":{"type":"boolean","default":false,"description":"是否已注册"},"domain":{"type":"string","description":"域名"},"suffix":{"type":"string","description":"域名后缀"},"whois_server":{"type":"string","description":"域名 whois 服务器"},"creation_date":{"type":"string","description":"注册时间"},"expiration_date":{"type":"string","description":"过期时间"},"registrar":{"type":"string","description":"注册商"},"registrant_email":{"type":"string","description":"注册邮箱"},"registrant_phone":{"type":"string","description":"注册联系电话"},"domain_status":{"type":"string","description":"域名状态"},"name_server":{"type":"string","description":"域名NS服务器"},"dnssec":{"type":"string","description":"dnssec"}}}},"securitySchemes":{"apiKey":{"type":"apiKey","name":"token","in":"header","description":"API 认证令牌"}}},"security":[{"apiKey":[]}]}