freeapis

ip2geo.dev

以编程方式将 IP 地址转换为地理定位数据

认证方式
API Key
HTTPS
Yes
CORS
Yes
数据来源
public-apis
文档 / URL
https://ip2geo.dev

简介

ip2geo.dev 用现代 JSON API 把 IP 解析为地理定位数据。认证是 API 密钥。

⚠️ 状态(2026-08 实测):猜测的路径(/8.8.8.8)返回 HTTP 404 “This route does not exist!”——API 用带版本号的路径(如文档里的 /api/v1/ip/{ip})。使用前请查看当前 API 参考。

快速开始

服务活着(结构化 JSON 错误);请用文档里的版本化路由:

curl "https://api.ip2geo.dev/api/v1/ip/8.8.8.8" \
  -H "x-api-key: YOUR_KEY"

认证方式

  • 在 ip2geo.dev 注册 → API 密钥。
  • 通过文档说明的认证头/参数发送。

速率限制与注意事项

  • 免费层带月度积分(看文档);付费档可扩展。
  • API 返回结构化 {"success":false,"code":404,...} 错误(已实测)。

常见问题

ip2geo.dev 免费吗? 免费层带积分;更多需要付费。

为什么 404? 我们 2026-08 猜测的路径不对(已实测)——请用文档里的版本化路由。

错误风格是什么? 带 success/code 字段的结构化 JSON(已实测)。

地理编码 分类更多

APIAuthHTTPSCORS
Actinia Grass GIS

Actinia is an open source REST API for geographical data that uses GRASS GIS

API KeyYesUnknown↗
administrative-divisons-db

Get all administrative divisions of a country

No authYesYes↗
adresse.data.gouv.fr

Address database of France, geocoding and reverse

No authYesUnknown↗
Airtel IP

IP Geolocation API. Collecting data from multiple sources

No authYesUnknown↗
Apiip

Get location information by IP address

API KeyYesYes↗