freeapis

ipapi.com

实时地理定位与 IP 反向查询 REST API

认证方式
API Key
HTTPS
Yes
CORS
Unknown

简介

ipapi.com(APILayer 产品)提供 IP 地理定位和安全数据。认证是免费 API 密钥(无效密钥返回 HTTP 200 带 "success": false——APILayer 风格,已实测)。

快速开始

查询(替换 YOUR_KEY):

curl "https://api.ipapi.com/api/8.8.8.8?access_key=YOUR_KEY"
{
  "ip": "8.8.8.8",
  "type": "ipv4",
  "continent_code": "NA",
  "country_code": "US",
  "country_name": "United States",
  "city": "Mountain View",
  "latitude": 37.386,
  "longitude": -122.0838,
  "currency": { "code": "USD" },
  "security": { "is_proxy": false, "is_crawler": false }
}

认证方式

  • 在 ipapi.com 注册 → 免费 API 密钥(邮件发送)。
  • 通过 access_key 查询参数携带。
  • 无效密钥返回 200 + "success": false(已实测)——请检查 JSON。

速率限制与注意事项

  • 免费层:100 次请求/月(以文档为准)——额度小;付费档可扩展。
  • 免费层含安全数据(代理/VPN 检测)。
  • 免费层无 https(仅 http)——请看文档。

常见问题

ipapi.com 免费吗? 免费层:100 次/月;更多需要付费。

为什么 200 但 success:false? APILayer 惯例——请检查 success 字段(已实测)。

包含什么? IP 地理定位加代理/VPN 安全标记。

地理编码 分类更多

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