稳定、快速的API服务

Sh-API,我们致力于为用户提供专业的免费API数据接口服务

本地IP查询 v1.0

最后更新: 2025-03-15

此接口用于查询客户端的网络、设备、浏览器、服务器和安全信息。支持简略信息和完整信息两种返回格式。

免费接口 调用次数: 27,046 正常运行 响应速度: <100ms

接口信息

接口地址:
https://api.yyy001.com/api/myip
请求方式: GET
返回格式: JSON

调用统计

27,046
今日调用
27,046
总调用次数
请求示例 https://api.yyy001.com/api/myip

点击右侧按钮复制完整请求地址

请求参数

名称 必填 类型 说明
detail
int 是否返回完整信息,1 表示返回完整信息,0 或不传表示返回简略信息

返回参数

名称 类型 说明
status
string 请求状态,success 表示成功,error 表示失败
timestamp
string 请求时间戳
network
object 网络信息
network.ip
string 客户端 IP 地址
network.version
string IP 版本(IPv4/IPv6)
network.location
object IP 地址地理位置信息
network.location.country
string 国家或地区
network.location.city
string 城市
network.location.district
string 区县
network.location.isp
string 网络服务提供商
network.proxy
object 代理信息
network.proxy.forwarded_for
string 代理转发 IP
network.proxy.via
string 代理路径
network.port
string 客户端端口
client
object 客户端信息
client.device
object 设备信息
client.device.type
string 设备类型(手机、平板、桌面设备)
client.device.os
string 操作系统
client.device.browser
string 浏览器信息
client.headers
object 请求头信息
client.headers.user_agent
string 用户代理
client.headers.language
string 语言
client.headers.encoding
string 编码
client.headers.accept
string 接受的内容类型
client.headers.dnt
string 是否开启 Do Not Track(开启 / 关闭 / 未知)
client.headers.cookie
string 是否设置 Cookie(已设置 / 未设置)
client.referer
string 来源页面
server
object 服务器信息
server.software
string 服务器软件
server.protocol
string 服务器协议
server.method
string 请求方法
server.scheme
string 请求协议(http/https)
server.port
string 服务器端口
server.time
string 请求时间
security
object 安全信息
security.https
string 是否使用 HTTPS(on/off)
security.tls
object TLS 信息
security.tls.version
string TLS 版本
security.tls.cipher
string TLS 加密套件
tips
string 提示信息

返回示例