TGTGInsighttelegram intelligenceLIVE / telegram public index
← Dejavu's Blog
Dejavu's Blog avatar

TGINSIGHT POST

Post #3450

@dejavuBlog

Dejavu's Blog

Views539帖子阅读量
发布3月20日2026/03/20 11:59
Post content

帖子内容

撸了个简单的 IP 查询接口 用的 MaxMind 免费数据库/每周更新 ip.zsh.moe GET 请求示例: curl ip.zsh.moe # 仅 IPv4 查询 curl -4 ip.zsh.moe # 仅 IPv6 查询 curl -6 ip.zsh.moe # JSON 格式 curl ip.zsh.moe/json #仅 IPv4 查询 JSON curl -4 ip.zsh.moe/json # 仅 IPv6 查询 JSON curl -6 ip.zsh.moe/json 也可以添加 Header 获取 JSON: curl -H "Accept: application/json" ip.zsh.moe #仅 IPv4 查询 JSON curl -4 -H "Accept: application/json" ip.zsh.moe/json # 仅 IPv6 查询 JSON curl -6 -H "Accept: application/json" ip.zsh.moe/json