💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**简要描述:** - IP信息查询(支持IPV4和IPV6查询) - 限制请求频率 - **请求URL:** ` http://api.guaqb.cn/v1/ip/ ` - **请求方式:** GET **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |ip|否 |string |ip为空获取当前ip | ~~~[api] get:https://api.guaqb.cn/v1/ip/ *string:ip=默认值#留空获取当前IP <<< success {"code":"200", "data":{"ip":"125.127.2.80","country": {"countries":"中国","province":"浙江省","city":"台州市","area":"临海市", "distribution_area":"华东"},"isp":"电信"}} <<< error {"code":"400","date":"IP地址错误!"} ~~~ **中国地址返回示例** ``` {"code":"200", "data":{"ip":"125.127.2.80","info": {"countries":"中国","province":"浙江省","city":"台州市","area":"临海市", "distribution_area":"华东"},"isp":"电信"}} ``` **国外地址返回示例** ``` {"code":"200","data":{"ip":"1.9.255.255","info":{"countries":"马来西亚"},"isp":"Tmnet大马电讯"}} ``` **ipv6地址返回示例** ``` {"code":"200","data":{"ip":"2406:840::1","info":{"country":"全球"},"isp":"ZX Network Anycast网段","version":"20210722"}} ``` **错误返回** ``` {"code":"400","date":"IP地址错误!"} ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- | |code|int|查询状态 | |data |string |查询到的数据 | |ip |string |查询的IP地址 | |countries|string |国家 | |province|string |省份| |city|string |城市| |area |string |区域| |distribution_area |string |行政区域 | |isp |string |网络 区域 | **备注** - 更多返回错误代码请看首页的错误代码描述