ipwhois
提供国家、城市、坐标、ISP、时区和国旗数据的 IP 地理定位
- 认证方式
- No auth
- HTTPS
- Yes
- CORS
- Yes
- 分类
- 地理编码
- 文档 / URL
- https://ipwhois.io/documentation
简介
ipwhois.io 把 IP 地址解析为丰富的位置和网络数据——国家、地区、城市、坐标、时区、ISP、组织、ASN 和连接类型——一次免密钥 GET 搞定。支持 CORS,轻量使用免费。
快速开始
查询 IP(实测可用——8.8.8.8):
curl "https://ipwhois.app/json/8.8.8.8"
{
"ip": "8.8.8.8",
"success": true,
"type": "IPv4",
"continent": "North America",
"country": "United States",
"country_code": "US",
"region": "California",
"city": "Mountain View",
"latitude": "37.4056",
"longitude": "-122.0775",
"timezone_gmt": "-7",
"connection": { "isp": "Google LLC", "org": "Google LLC", "asn": 15169 }
}
查询自己的 IP(省略地址):
curl "https://ipwhois.app/json/"
认证方式
无需认证——免密钥(免费密钥可提高速率限制)。
速率限制与注意事项
- 免费层:约 10,000 次请求/月(持续约 1 次/5 秒);注册免费密钥可提高。
- 响应是扁平 JSON:国家/地区/城市/坐标,外加
connection(ISP/ASN)、timezone和security(威胁)信息。 - 支持 HTTPS——请使用。
常见问题
ipwhois 免费吗? 是的——免费层约 10,000 次请求/月;免费密钥可提高限额。
可以在浏览器直接调用吗? 可以——已启用 CORS。
和 ipwhois.net 有什么区别? 不同的产品:ipwhois.io 是这个简单的 IP 查询 API;ipwhois.net 卖 WHOIS/黑名单数据(本站也有收录)。
地理编码 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| Actinia Grass GIS Actinia is an open source REST API for geographical data that uses GRASS GIS | API Key | Yes | Unknown | ↗ |
| administrative-divisons-db Get all administrative divisions of a country | No auth | Yes | Yes | ↗ |
| adresse.data.gouv.fr Address database of France, geocoding and reverse | No auth | Yes | Unknown | ↗ |
| Airtel IP IP Geolocation API. Collecting data from multiple sources | No auth | Yes | Unknown | ↗ |
| Apiip Get location information by IP address | API Key | Yes | Yes | ↗ |