使用本指南向 /api/ip 傳送單個 IP 查詢請求,瞭解返回的 JSON 欄位,並在需要更多上下文時轉到即時瀏覽器工作流。
/api/ip 每次請求處理一個公網 IP。沒有批次介面、沒有身份驗證,也不提供可用性保證。
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": "[email protected]",
"email_tech": null
}
在解讀地址或聯絡資訊前,先檢視解釋所有權和範圍的欄位。
這些是即時端點當前的限制,因此請讓您的自動化與之保持一致。
先透過文件路由瞭解介面約定,然後在需要更豐富的調查上下文或可分享的查詢頁面時轉到即時瀏覽器工作流。