开发者参考
IP 地理位置 API 文档
IP 地理位置 API 文档: 包含地理位置、ASN/网络信息和安全信号的全面 IP 情报。支持直接 IP 查询和域名解析,并可结合 Tor 出口节点检测、云提供商识别和数据中心检测,用于欺诈防范和安全分析。
IP 地理位置
包含地理位置、ASN/网络信息和安全信号的全面 IP 情报。支持直接 IP 查询和域名解析,并可结合 Tor 出口节点检测、云提供商识别和数据中心检测,用于欺诈防范和安全分析。
GET
/v1/ip
查询参数
| 参数 | 类型 | 必需 |
|---|---|---|
| ip | string | 可选 |
| domain | string | 可选 |
响应字段
| 字段 | 类型 |
|---|---|
ip |
string |
domain |
string | null |
geolocation |
object |
geolocation.country |
string |
geolocation.country_name |
string |
geolocation.region |
string |
geolocation.region_name |
string |
geolocation.city |
string |
geolocation.postal |
string | null |
geolocation.latitude |
number |
geolocation.longitude |
number |
geolocation.timezone |
string |
network |
object |
network.asn |
integer | null |
network.asn_name |
string | null |
network.asn_org |
string | null |
network.isp |
string | null |
network.connection_type |
string | null |
security |
object |
security.is_proxy |
boolean |
security.is_vpn |
boolean |
security.is_tor |
boolean |
security.is_tor_exit |
boolean |
security.is_datacenter |
boolean |
security.is_cloud |
boolean |
security.cloud_provider |
string | null |
security.threat_score |
integer |
security.is_vpn_suspected |
boolean |
security.vpn_suspected_provider |
string | null |
security.type_classification |
object |
security.type_classification.type |
string |
security.type_classification.confidence |
string |
security.fcrdns |
object |
security.fcrdns.ptr |
string | null |
security.fcrdns.fcrdns_valid |
boolean | null |
meta |
object |
meta.query_time_ms |
integer |
meta.cached |
boolean |
meta.source |
string |
请求示例
curl -H "X-API-Key: $DOMSCAN_API_KEY" "https://domscan.net/v1/ip?ip=8.8.8.8&domain=openai.com"
响应示例
{
"ip": "8.8.8.8",
"domain": null,
"geolocation": {
"country": "US",
"country_name": "United States",
"region": "CA",
"region_name": "California",
"city": "Mountain View",
"postal": "94035",
"latitude": 37.386,
"longitude": -122.0838,
"timezone": "America/Los_Angeles"
},
"network": {
"asn": 15169,
"asn_name": "AS15169",
"asn_org": "Google LLC",
"isp": "Google LLC",
"connection_type": "hosting"
},
"security": {
"is_proxy": false,
"is_vpn": false,
"is_tor": false,
"is_tor_exit": false,
"is_datacenter": true,
"is_cloud": true,
"cloud_provider": "Google Cloud",
"threat_score": 0,
"type_classification": {
"type": "datacenter",
"confidence": "high"
},
"fcrdns": {
"ptr": "dns.google",
"fcrdns_valid": true
}
},
"meta": {
"query_time_ms": 118,
"cached": false,
"source": "ip-api.com+enrichment"
}
}