IP Lookup

IP Lookup · GPT-Aktionen

IP地址查询

获取指定IP地址的地理位置,获取指定的IP地址的whois管理员信息及ASN号的详细信息.

  • GET /get_ip_location获取指定IP地址的详细地理位置信息
  • GET /get_whois_ip获取指定IP地址的Whois ip管理员详细信息
Ursprüngliches API-Schema
{
  "openapi": "3.0.1",
  "info": {
    "title": "IP地址查询",
    "description": "获取指定IP地址的地理位置,获取指定的IP地址的whois管理员信息及ASN号的详细信息.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://gpts.ipshu.com"
    }
  ],
  "paths": {
    "/get_ip_location": {
      "get": {
        "operationId": "getIpLocation",
        "summary": "获取指定IP地址的详细地理位置信息",
        "parameters": [
          {
            "name": "word",
            "in": "query",
            "description": "要查询的IP地址",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "word是一个IP地址,或者是一个域名,该域名会转换成IP,然后获取对应的地址信息,包含了国家、省份、城市、运营商、经纬度的信息",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getIpLocation"
                }
              }
            }
          }
        }
      }
    },
    "/get_whois_ip": {
      "get": {
        "operationId": "getwhoisip",
        "summary": "获取指定IP地址的Whois ip管理员详细信息",
        "parameters": [
          {
            "name": "word",
            "in": "query",
            "description": "要查询的IP地址",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "word是一个IP地址或是一个域名,该域名会转换成IP,然后获取对应的地址whois管理员信息,包括邮箱,地址,电话等信息。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getwhoisip"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "getIpLocation": {
        "type": "object",
        "required": [
          "word"
        ],
        "properties": {
          "word": {
            "type": "string",
            "description": "word是一个IP地址,或者是一个域名,该域名会转换成IP,然后获取对应的地址信息信息"
          }
        }
      },
      "getwhoisip": {
        "type": "object",
        "required": [
          "word"
        ],
        "properties": {
          "word": {
            "type": "string",
            "description": "word是一个IP地址,或者是一个域名,该域名会转换成IP,然后获取对应的地址信息信息"
          }
        }
      }
    }
  }
}