C 复制 IP,按 R 刷新数据🌐 在线访问: https://ip.at9.net
源码仓库:
# 快速获取 IP 地址
curl https://ip.at9.net
# 输出: 123.45.67.89
# 获取 JSON 格式详细信息
curl https://ip.at9.net?format=json
Fork 本项目
# 在 CNB.cool 或 GitHub 上 Fork 本项目
配置 API Token
配置 CNB.cool CI/CD
在 .cnb.yml 中配置您的 API Token:
imports:
- https://cnb.cool/your-username/my-secrets/-/blob/main/wx-envs.yml
推送代码触发部署
git add .
git commit -m "Deploy to EdgeOne Pages"
git push origin main
访问您的应用
View-IP/ ├── edge-functions/ # 边缘函数目录 │ └── ip/ │ └── index.js # 主函数文件(包含前后端逻辑) ├── .cnb.yml # CNB.cool CI/CD 配置 ├── edgeone.json # EdgeOne Pages 配置 ├── LICENSE # MIT 开源协议 └── README.md # 项目说明文档
GET https://ip.at9.net
返回完整的 HTML 仪表板界面
GET https://ip.at9.net?format=text
# 或使用 curl/wget
curl https://ip.at9.net
返回纯文本 IP 地址
GET https://ip.at9.net?format=json
返回 JSON 格式的详细信息:
{
"ip": "123.45.67.89",
"country": "China",
"city": "Beijing",
"isp": "中国电信 China Telecom",
"region": "Beijing",
"latitude": 39.9042,
"longitude": 116.4074,
"asn": "AS4134"
}
| 快捷键 | 功能 |
|---|---|
C | 复制 IP 地址到剪贴板 |
R | 手动刷新所有数据 |
自动识别并友好显示主流运营商:
实时监控到主流服务的延迟:
欢迎提交 Issue 和 Pull Request!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)本项目采用 MIT License 开源协议
如果这个项目对您有帮助,请给个 ⭐ Star 支持一下!
Made with ❤️ by htazq