> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scoutlayer.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Domain WHOIS API

> Registrar, registrant/admin/tech contacts, creation/expiry/updated dates, and name servers.



## OpenAPI

````yaml openapi.json GET /v1/website/whois/domains/{domain}
openapi: 3.0.0
info:
  title: ScoutLayer API
  version: 1.0.0
  description: Competitor data. One API.
servers:
  - url: https://api.scoutlayer.io
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /v1/website/whois/domains/{domain}:
    get:
      tags:
        - website
        - whois
        - domains
        - dns
      summary: Get WHOIS/RDAP data for any domain
      description: >-
        Registrar, registrant/admin/tech contacts, creation/expiry/updated
        dates, and name servers.
      parameters:
        - schema:
            type: string
            minLength: 1
            example: example.com
          required: true
          name: domain
          in: path
      responses:
        '200':
          description: Get WHOIS/RDAP data for any domain
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhoisResult'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Insufficient credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: This endpoint is declared but not yet implemented — never charged
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: The orchestrator failed or was unreachable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    WhoisResult:
      type: object
      properties:
        domain:
          type: string
        available:
          type: boolean
        registrar:
          type: object
          nullable: true
          properties:
            name:
              type: string
              nullable: true
            ianaId:
              type: string
              nullable: true
            abuseEmail:
              type: string
              nullable: true
            abusePhone:
              type: string
              nullable: true
          required:
            - name
            - ianaId
            - abuseEmail
            - abusePhone
        registeredOn:
          type: string
          nullable: true
        expiresOn:
          type: string
          nullable: true
        updatedOn:
          type: string
          nullable: true
        status:
          type: array
          items:
            type: string
        nameServers:
          type: array
          items:
            type: string
        dnssec:
          type: boolean
          nullable: true
        contacts:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
              name:
                type: string
                nullable: true
              organization:
                type: string
                nullable: true
              email:
                type: string
                nullable: true
              phone:
                type: string
                nullable: true
              redacted:
                type: boolean
            required:
              - role
              - name
              - organization
              - email
              - phone
              - redacted
        sourceType:
          type: string
          enum:
            - authoritative
            - fallback
          description: >-
            Whether the registry's own RDAP record answered this lookup, or
            ScoutLayer fell back to a secondary source
        scrapedAt:
          type: string
      required:
        - domain
        - available
        - registrar
        - registeredOn
        - expiresOn
        - updatedOn
        - status
        - nameServers
        - dnssec
        - contacts
        - sourceType
        - scrapedAt
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: NOT_FOUND
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key passed as the X-API-Key request header. Recommended for
        server-to-server calls.
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key (or OAuth token) passed as a Bearer token in the Authorization
        header.

````