# Whois 查询

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/whois:
    get:
      summary: Whois 查询
      deprecated: false
      description: 查询域名的 Whois 信息，优先使用 RADP 协议数据，然后降级到常规的 Whois 本地递归查询。
      tags:
        - 🍱 实用功能
      parameters:
        - name: domain
          in: query
          description: ''
          required: true
          example: 新华网.cn
          schema:
            type: string
        - name: encoding
          in: query
          description: 编码方式，支持 text/json/markdown
          required: false
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      domain:
                        type: string
                      unicode_domain:
                        type: string
                      punycode_domain:
                        type: string
                      status:
                        type: array
                        items:
                          type: string
                      registrar:
                        type: string
                      registrant:
                        type: object
                        properties:
                          name:
                            type: string
                          organization:
                            type: string
                          email:
                            type: string
                          country:
                            type: string
                        required:
                          - name
                          - organization
                          - email
                          - country
                      nameservers:
                        type: array
                        items:
                          type: string
                      dnssec:
                        type: string
                      created:
                        type: string
                      created_at:
                        type: integer
                      updated:
                        type: string
                      updated_at:
                        type: integer
                      expires:
                        type: string
                      expires_at:
                        type: integer
                      duration:
                        type: integer
                      duration_desc:
                        type: string
                    required:
                      - domain
                      - unicode_domain
                      - punycode_domain
                      - status
                      - registrar
                      - registrant
                      - nameservers
                      - dnssec
                      - created
                      - created_at
                      - updated
                      - updated_at
                      - expires
                      - expires_at
                      - duration
                      - duration_desc
                required:
                  - code
                  - message
                  - data
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 🍱 实用功能
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5757303/apis/api-395511470-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://60s.viki.moe
    description: 正式环境
security: []

```
