{
  "openapi": "3.0.3",
  "info": {
    "title": "Whois域名注册信息查询",
    "description": "用来查询域名是否已被注册及详细信息的数据库接口，适用于域名注册商、网站开发者、企业用户等，用于确保域名可用性并获取注册者信息，适用于域名注册、品牌保护、网络开发等场景。",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/2180-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 30,
      "x-connect-timeout": 30,
      "post": {
        "summary": "Whois域名注册信息",
        "description": "用来查询域名是否已被注册及详细信息的数据库接口，适用于域名注册商、网站开发者、企业用户等。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "expirationDate": {
                              "type": "string",
                              "description": "过期时间"
                            },
                            "remark": {
                              "type": "string",
                              "description": "提示信息"
                            },
                            "registrar": {
                              "type": "string",
                              "description": "注册商"
                            },
                            "updateDate": {
                              "type": "string",
                              "description": "更新时间"
                            },
                            "registDate": {
                              "type": "string",
                              "description": "注册时间"
                            },
                            "ret_code": {
                              "type": "string",
                              "description": "接口调用是否成功,0为成功,其他为失败"
                            },
                            "nsServer": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "ns服务器"
                            },
                            "email": {
                              "type": "string",
                              "description": "联系人邮箱"
                            },
                            "domain": {
                              "type": "string",
                              "description": "域名"
                            },
                            "whoisServer": {
                              "type": "string",
                              "description": "whois服务器"
                            },
                            "contactPerson": {
                              "type": "string",
                              "description": "注册联系人"
                            },
                            "domainStatus": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "域名状态"
                            },
                            "mobile": {
                              "type": "string",
                              "description": "联系人电话"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "2180_1_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "domain": {
                    "type": "string",
                    "description": "域名"
                  }
                },
                "required": [
                  "domain"
                ]
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AppKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "appKey",
        "description": "从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp"
      }
    },
    "schemas": {
      "ShowapiResEnvelope": {
        "type": "object",
        "description": "ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）",
        "properties": {
          "showapi_res_code": {
            "type": "integer",
            "description": "API 返回的状态码"
          },
          "showapi_res_error": {
            "type": "string",
            "description": "API 返回的错误信息"
          },
          "showapi_res_id": {
            "type": "string",
            "description": "API 请求的唯一标识"
          },
          "showapi_fee_num": {
            "type": "integer",
            "description": "API 调用计费次数"
          }
        }
      }
    }
  },
  "security": [
    {
      "AppKeyAuth": []
    }
  ],
  "externalDocs": {
    "url": "https://www.showapi.com/apiGateway/view/2180?tab=book"
  },
  "x-apiCode": "2180",
  "x-is-own": true,
  "x-is-op": true
}