查询IP信息API
本接口总调用:5161次·今日调用:0次

接口地址: http://api.wxsszs.cn/api/ip_info.php

返回格式: 请看返回示例

请求方式: GET

请求示例: http://api.wxsszs.cn/api/ip_info.php?ip=39.170.178.96

请求参数说明:

名称必填说明
ip需要查询的IP地址
hh换行符号(默认\n)

系统级错误:

名称说明
400请求错误!
403请求被服务器拒绝!
405客户端请求的方法被禁止!
408请求时间过长!
500服务器内部出现错误!
501服务器不支持请求的功能,无法完成请求!
503系统维护中!

返回示例:

{"code":200,"data":{"ip":"39.170.178.96","continent":"亚洲","country_english":"","country":"中国","prov":"浙江","city":"绍兴","district":"","isp":"移动","lat":"29.997117","lng":"120.582112","area_code":"330600","city_code":"0575","elevation":"10","time_zone":"Asia\/Shanghai","weather_station":"CHXX0117","zip_code":"312000"},"msg":"success","ip":"39.170.178.96","time":"2024-11-19 09:01:41","source":"青桔API:api.qjqq.cn"}

错误码格式说明:

名称类型说明