API简介:基于访问者 IP 自动返回地理位置、货币、经纬度信息。无需 Key,直接访问,支持 IPv4/IPv6,返回 JSON 格式。

接口问题联系相关负责人沟通修复:查看该接口开发者

接口地址:https://www.geoplugin.net/json.gp

返回格式:JSON

请求方式:GET

请求参数:https://www.geoplugin.net/json.gp?ip=8.8.8.8

注:单纯检测接口是否可调通,返回的数据请自行检查

检测接口中...(检测服务是否可用)


状态码 累计次数 最后检测时间
正常 0 0000-00-00 00:00:00
故障 2 2026-08-14 22:12:38

您好!我们的平台聚合了上千位开发者提供的免费接口,我们已尽力确保接口的稳定性,但由于无法控制其他开发者的接口,可能会出现不稳定或服务中断的情况。对此,我们深感抱歉!我们正在积极改善这一问题,感谢您的理解与支持。
1. 由于开发者可能因盈利问题导致接口失效,我为此向您道歉
2. 我们竭尽全力改进平台的接口稳定性。
3. 为便于您使用,我们提供了智能生成对接代码和在线极速测试接口的功能。
4. 我们将继续努力提供更多可靠的接口,满足您的需求。
5. 若有任何问题,欢迎通过微信与我联系:13132131321。再次感谢您的支持与信任!


接口注意:接口故障请及时反馈,修复进度将通过短信通知。

非官方接口,请联系开发者获取技术支持

Bug修复:非官方接口,Bug反馈请联系开发者

会员线路:因调用量剧增,定制独享优质线路请 参考定制方案

专属线路 成本透明 0服务费

请求参数

接口名称 是否必填 接口类型 接口说明
ip string 目标查询的 IP 地址,如 8.8.8.8,留空则返回当前访问者 IP 信息

返回示例

{
    "geoplugin_request": "8.8.8.8",
    "geoplugin_status": 200,
    "geoplugin_city": "Mountain View",
    "geoplugin_region": "California",
    "geoplugin_regionCode": "CA",
    "geoplugin_regionName": "California",
    "geoplugin_countryCode": "US",
    "geoplugin_countryName": "United States",
    "geoplugin_latitude": "37.386",
    "geoplugin_longitude": "-122.0838",
    "geoplugin_timezone": "America\/Los_Angeles",
    "geoplugin_currencyCode": "USD",
    "geoplugin_currencySymbol": "$",
    "geoplugin_currencyConverter": 1
}

返回参数

接口名称 接口类型 接口说明
geoplugin_request string 实际查询的 IP 地址
geoplugin_status Integer 接口响应状态码,200 为成功
geoplugin_delay string 请求处理延迟描述
geoplugin_credit string 版权与归属信息
geoplugin_city string IP 所在城市
geoplugin_region string IP 所在省份或州
geoplugin_regionCode string 地区代码
geoplugin_regionName string 地区名称
geoplugin_areaCode string 电话区号
geoplugin_dmaCode string DMA 市场代码
geoplugin_countryCode string 两位国家代码
geoplugin_countryName string 国家名称
geoplugin_inEU Integer 是否在欧盟区域,1 为是,0 为否
geoplugin_euVATrate Boolean 欧盟增值税率标识
geoplugin_continentCode string 洲代码
geoplugin_continentName string 洲名称
geoplugin_latitude string 纬度坐标
geoplugin_longitude string 经度坐标
geoplugin_locationAccuracyRadius string 定位精度半径,单位公里
geoplugin_timezone string 时区名称
geoplugin_currencyCode string 当地货币代码
geoplugin_currencySymbol string 当地货币符号
geoplugin_currencySymbol_UTF8 string UTF-8 编码的货币符号
geoplugin_currencyConverter Float 对美元的汇率转换值

{
    "geoplugin_currencyConverter": "对美元的汇率转换值",
    "geoplugin_currencySymbol_UTF8": "UTF-8 编码的货币符号",
    "geoplugin_currencySymbol": "当地货币符号",
    "geoplugin_currencyCode": "当地货币代码",
    "geoplugin_timezone": "时区名称",
    "geoplugin_locationAccuracyRadius": "定位精度半径,单位公里",
    "geoplugin_longitude": "经度坐标",
    "geoplugin_latitude": "纬度坐标",
    "geoplugin_continentName": "洲名称",
    "geoplugin_continentCode": "洲代码",
    "geoplugin_euVATrate": "欧盟增值税率标识",
    "geoplugin_inEU": "是否在欧盟区域,1 为是,0 为否",
    "geoplugin_countryName": "国家名称",
    "geoplugin_countryCode": "两位国家代码",
    "geoplugin_dmaCode": "DMA 市场代码",
    "geoplugin_areaCode": "电话区号",
    "geoplugin_regionName": "地区名称",
    "geoplugin_regionCode": "地区代码",
    "geoplugin_region": "IP 所在省份或州",
    "geoplugin_city": "IP 所在城市",
    "geoplugin_credit": "版权与归属信息",
    "geoplugin_delay": "请求处理延迟描述",
    "geoplugin_status": "接口响应状态码,200 为成功",
    "geoplugin_request": "实际查询的 IP 地址"
}

小白教程

本教程帮助用户快速对接IP 地址地理位置查询接口,现已支持智能生成代码

实时调试

部分视频、图片或其他接口报错、空值并不代表无法对接,请在本地尝试请求参数接口

在线调试

温馨提示:请修改请求参数,未修改可能返回报错

参数名称 参数值(修改后测试)
{
  "geoplugin_request": "8.8.8.8",
  "geoplugin_status": 200,
  "geoplugin_city": "Mountain View",
  "geoplugin_region": "California",
  "geoplugin_regionCode": "CA",
  "geoplugin_regionName": "California",
  "geoplugin_countryCode": "US",
  "geoplugin_countryName": "United States",
  "geoplugin_latitude": "37.386",
  "geoplugin_longitude": "-122.0838",
  "geoplugin_timezone": "America/Los_Angeles",
  "geoplugin_currencyCode": "USD",
  "geoplugin_currencySymbol": "$",
  "geoplugin_currencyConverter": 1
}