# Get WHOIS

Returns the current WHOIS data about a given domain with the stats merged together

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "SecurityTrails API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.securitytrails.com/v1"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/domain/{hostname}/whois": {
      "get": {
        "summary": "Get WHOIS",
        "description": "Returns the current WHOIS data about a given domain with the stats merged together",
        "operationId": "get-whois-old",
        "parameters": [
          {
            "name": "hostname",
            "in": "path",
            "schema": {
              "type": "string",
              "default": "securitytrails.com"
            },
            "required": true
          },
          {
            "name": "apikey",
            "in": "query",
            "description": "Your SecurityTrails API key. See [authentication documentation](https://docs.securitytrails.com/docs/authentication)",
            "required": true,
            "schema": {
              "type": "string",
              "default": "your_api_key"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"updatedDate\": \"2019-06-22T10:55:40Z\",\n  \"status\": \"clientTransferProhibited clientUpdateProhibited clientRenewProhibited clientDeleteProhibited\",\n  \"registrarName\": \"MONIKER ONLINE SERVICES LLC\",\n  \"nameServers\": [\n    \"NS0.DNSMADEEASY.COM\",\n    \"NS1.DNSMADEEASY.COM\"\n  ],\n  \"expiresDate\": \"2020-06-21T07:45:18Z\",\n  \"endpoint\": \"/v1/domain/securitytrails.com/whois\",\n  \"domain\": \"securitytrails.com\",\n  \"createdDate\": \"2017-06-21T07:45:18Z\",\n  \"contacts\": [\n    {\n      \"type\": \"technicalContact\",\n      \"countryCode\": \"US\",\n      \"country\": \"UNITED STATES\"\n    },\n    {\n      \"type\": \"administrativeContact\",\n      \"countryCode\": \"US\",\n      \"country\": \"UNITED STATES\"\n    },\n    {\n      \"type\": \"registrant\",\n      \"state\": \"California\",\n      \"name_count\": 21,\n      \"name\": \"Registrant State/Province: California\",\n      \"countryCode\": \"US\",\n      \"country\": \"UNITED STATES\"\n    }\n  ],\n  \"contactEmail\": \"abuse@godaddy.com\"\n}\n"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "updatedDate": {
                      "type": "string",
                      "example": "2019-06-22T10:55:40Z"
                    },
                    "status": {
                      "type": "string",
                      "example": "clientTransferProhibited clientUpdateProhibited clientRenewProhibited clientDeleteProhibited"
                    },
                    "registrarName": {
                      "type": "string",
                      "example": "MONIKER ONLINE SERVICES LLC"
                    },
                    "nameServers": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "NS0.DNSMADEEASY.COM"
                      }
                    },
                    "expiresDate": {
                      "type": "string",
                      "example": "2020-06-21T07:45:18Z"
                    },
                    "endpoint": {
                      "type": "string",
                      "example": "/v1/domain/securitytrails.com/whois"
                    },
                    "domain": {
                      "type": "string",
                      "example": "securitytrails.com"
                    },
                    "createdDate": {
                      "type": "string",
                      "example": "2017-06-21T07:45:18Z"
                    },
                    "contacts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "example": "technicalContact"
                          },
                          "countryCode": {
                            "type": "string",
                            "example": "US"
                          },
                          "country": {
                            "type": "string",
                            "example": "UNITED STATES"
                          }
                        }
                      }
                    },
                    "contactEmail": {
                      "type": "string",
                      "example": "abuse@godaddy.com"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```