朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

IP查询接口+PHP对接使用方法

具体请前往:http://api.o60.cc/ip查看

代码实例

<?PHP
$ip="IP地址";
$url="http://api.o60.cc/ip.php?ip=".$ip;
//接口地址
$con1=file_get_contents($url);
//获取接口地址源代码
$con2=json_decode($con1,true);
//json转array
//以下就是读取数组中对应的数据
$country=$con2['data']['country'];//国家
$area=$con2['data']['area'];//地区
$sip=$con2['data']['ip'];//ip
$region=$con2['data']['region'];//省份
$city=$con2['data']['city'];//城市
$isp=$con2['data']['isp'];//机房
$country_id=$con2['data']['country_id'];
$area_id=$con2['data']['area_id'];
$region_id=$con2['data']['region_id'];
$city_id=$con2['data']['city_id'];
$county_id=$con2['data']['county_id'];
$isp_id=$con2['data']['isp_id'];
//如果你要打印国家 代码为:
echo $country;
?>

接口说明

本ip查询接口地址为:http://api.o60.cc/ip.PHP?ip=要查询的ip地址

[collapse status=”true” title=”返回值说明”]
ip:你所查询的ip地址
country:你所查询的ip地址所在的国家
area:你所查询的ip地址所在的地区
region:你所查询的ip地址所在的省份
City:你所查询的ip地址所在的城市
county:你所查询的ip地址所在的县
ISP:你所查询的ip服务器所在的机房
[/collapse]

源码文件

此文件为api.o60.cc/ip 的源码文件,需要的同学可以下载
下载地址:

赞(0) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » IP查询接口+PHP对接使用方法

评论 13

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #0

    Effect of melatonin on proliferation of neonatal cord blood mononuclear cells clomid forsale Yale J Biol Med 64 607 626

    refeInnob2周前 (11-17)回复
  2. #0

    ivermectin amazon This means that patients get assessed when they present with ESRD and they only get accepted onto a dialysis programme if they fulfill certain criteria

    Voppido2周前 (11-17)回复
  3. #0

    doxycycline heart side effects We also measured the expression of two genes associated with breast malignancy, Keratin 19 K19 and mucin 1 Muc 1 as previously described 19

    Apabili2周前 (11-16)回复
  4. #0

    Banbury Report 8, Hormones and Breast Cancer lasix loop diuretic He graduated from Loma Linda University in California with a PhD in microbiology in 1994 and an MD in 1995

    Inpuncmut2周前 (11-16)回复
  5. #0

    tamoxifen citrate for sale Figure 2 Vitiligo like lesions over the face

    NofTrurry3周前 (11-09)回复
  6. #0

    1 years, patients with tubular cribriform breast cancer had the best outcomes in disease free survival, overall survival, breast cancer free interval BCFI, and distant recurrence free interval DRFI compared with all other histotypes priligy premature ejaculation pills Terpenoids are a class of isoprenoids from a large and structurally diverse family of natural products

    crosile4周前 (11-07)回复
  7. #0

    stromectol maker slander till I went out after my convalescence, I went out with Um Mistah to Al Manasi where we used to answer the call of nature and we used not to go out to answer the call of nature except at night, and that was before we had latrines near our houses

    roagoff1个月前 (10-28)回复
  8. #0

    compro viagra espana stromectol manufacturer

    abortadia3个月前 (08-22)回复
  9. #0

    Great post thank you. Hello Administ .

  10. #0
  11. #0

    http://fi6g558.cn/
    颛孙夏容资讯网
    看看在线

    123cc1年前 (2021-09-01)回复
  12. #0

    http://r06220m.cn/
    好看视频
    在线看

    123cc1年前 (2021-08-31)回复
  13. #0

    ?

    乱世小熊2年前 (2020-10-04)回复