使用本指南向 /api/ip 发送单个 IP 查询请求,了解返回的 JSON 字段,并在需要更多上下文时转到实时浏览器工作流。
请保持范围客观:/api/ip 是一次仅处理一个公网 IP 的查询辅助接口。它不是批量、认证型或带 SLA 承诺的 API 产品。
fetch("/api/ip?ip=8.8.8.8")
.then((response) => response.json())
.then((data) => console.log(data));
curl https://comutil.com/api/ip?ip=8.8.8.8
{
"asn_registry": "arin",
"asn": "15169",
"asn_cidr": "8.8.8.0/24",
"asn_country_code": "US",
"asn_date": "1992-12-01",
"asn_description": "GOOGLE, US",
"network": {
"name": "GOGL",
"country": "US",
"start_address": "8.8.8.0",
"end_address": "8.8.8.255",
"type": "DIRECT ALLOCATION",
"status": "active",
"links": []
},
"nir_postal_code": null,
"nir_range": null,
"address": "1600 Amphitheatre Parkway",
"email_admin": "arin-contact@google.com",
"email_tech": null
}
在解读地址或联系信息前,先查看解释所有权和范围的字段。
这些是实时端点当前的限制,因此请让您的自动化与之保持一致。
先通过文档路由了解接口约定,然后在需要更丰富的调查上下文或可分享的查询页面时转到实时浏览器工作流。