freeapis

Apiip

通过 IP 地址获取位置信息

认证方式
API Key
HTTPS
Yes
CORS
Yes
数据来源
public-apis + marcelscruz
文档 / URL
https://apiip.net/

简介

apiip.net 把 IP 解析为地理定位数据——国家、城市、货币和连接信息。认证是访问密钥(无有效密钥的请求返回 403,已实测)。

快速开始

查询(替换 YOUR_KEY):

curl "https://apiip.net/api/check?accessKey=YOUR_KEY&ip=8.8.8.8"
{
  "ip": "8.8.8.8",
  "countryCode": "US",
  "countryName": "United States",
  "cityName": "Mountain View",
  "currency": { "code": "USD" },
  "connection": { "asn": 15169 }
}

认证方式

  • 在 apiip.net 注册 → 免费访问密钥(邮件发送)。
  • 通过 accessKey 查询参数携带(缺失/无效 → 403,已实测)。

速率限制与注意事项

  • 免费层:约 1,000 次/天(以文档为准);付费档可扩展。
  • 还提供国旗、货币和连接(ASN)数据。

常见问题

apiip 免费吗? 免费层带每日额度;更多需要付费。

如何获取密钥? 在 apiip.net 注册——密钥会邮件发送。

认证风格是什么? accessKey 查询参数(无则 403,已实测)。

地理编码 分类更多

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↗
ApogeoAPI

IP geolocation (IPv4 + IPv6) with country, city, timezone and 150k cities database

API KeyYesUnknown↗