🌍 GeoLite API

支持单个查询 • 批量处理 • 网络检测

🌍 当前网络信息

国内测试
-
-
· 您访问国内站点所使用的IP
国外测试
-
-
· 您访问没有被封的国外站点所使用的IP
CloudFlare(ProxyIP)
-
-
· 您访问CFCDN站点所使用的落地IP
Twitter/X
-
-
· 您访问Twitter(x.com)所使用的IP
💡 国内测试 是由您梯子的 分流规则 决定的,国外测试 是由您的 优选IP 决定的,而 CF、Twitter、ChatGPT 是由您的 PROXYIP 决定的。

🔍 单个/批量查询

批量查询多个IP或域名

📚 API文档

📡 API接口

1. 单个查询接口

GET /api/query?input={IP或域名}
POST /api/query

请求示例:

curl "https://your-domain.vercel.app/api/query?input=8.8.8.8"
curl "https://your-domain.vercel.app/api/query?input=google.com"

响应示例:

{
  "success": true,
  "data": {
    "input": "8.8.8.8",
    "type": "ip",
    "ip": "8.8.8.8",
    "country_code": "US",
    "country_name": "美国",
    "continent_code": "NA",
    "continent_name": "北美洲",
    "status": "success"
  },
  "timestamp": "2024-01-01T00:00:00.000Z"
}

2. 批量查询接口

POST /api/batch

请求示例:

curl -X POST "https://your-domain.vercel.app/api/batch" \
  -H "Content-Type: application/json" \
  -d '{
    "inputs": ["8.8.8.8", "google.com", "1.1.1.1", "github.com"],
    "format": "json"
  }'

📊 响应字段说明

  • input: 输入的IP地址或域名
  • type: 输入类型(ip/domain/invalid)
  • ip: 查询的IP地址
  • resolved_ip: 域名解析后的IP地址
  • country_code: 国家代码(ISO 3166-1 alpha-2)
  • country_name: 国家名称(中文/英文)
  • continent_code: 洲代码
  • continent_name: 洲名称
  • status: 查询状态(success/error/not_found)