GeoJS
支持 ChatOps 集成的 IP 地理定位
- 认证方式
- No auth
- HTTPS
- Yes
- CORS
- Yes
- 分类
- 地理编码
- 文档 / URL
- https://www.geojs.io/
简介
GeoJS 是免费 IP 地理定位 API——IP 转城市、国家、坐标、时区和 ASN 数据,支持浏览器 CORS(实测可用)。免密钥且配额宽松,是零配置 IP 查询的优秀选择。
快速开始
查询自己的 IP(实测可用):
curl "https://get.geojs.io/v1/ip/geo.json"
{
"accuracy": 100,
"asn": 3462,
"city": "Kaohsiung",
"continent_code": "AS",
"country": "Taiwan",
"country_code": "TW",
"ip": "210.61.187.110",
"latitude": "22.6148",
"longitude": "120.3139",
"organization": "Data Communication Business Group",
"region": "Kaohsiung",
"timezone": "Asia/Taipei"
}
查询特定 IP:
curl "https://get.geojs.io/v1/ip/geo/8.8.8.8.json"
你的公网 IP:
curl "https://get.geojs.io/v1/ip.json"
认证方式
无需认证——免密钥(可选付费档提高限额)。
速率限制与注意事项
- 免费层:宽松(没有公开的硬性限制——请礼貌使用);付费档用于大量调用。
- 端点:
/v1/ip/geo.json(自己)、/v1/ip/geo/{ip}.json(特定)、/v1/ip.json(纯 IP)。 - 字段:国家/城市/地区、经纬度、时区、ASN + 组织。
- 支持 CORS——可直接从浏览器使用。
常见问题
GeoJS 免费吗? 是的——免费免密钥且配额宽松。
如何查询特定 IP?
/v1/ip/geo/8.8.8.8.json。
可以从浏览器用吗? 可以——已启用 CORS(实测)。
地理编码 分类更多
| 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 | ↗ |