api-ninjas-com Whois API

The Whois API retrieves domain registration information for any given domain using the WHOIS protocol.

Operations 1

GET /v1/whois Get domain registration details #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/api-ninjas-com:api-ninjas-com-whois-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

api-ninjas-com-whois-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ninjas Whois API
  description: 'Combined OpenAPI specification for every API Ninjas endpoint. Requests go to https://api.api-ninjas.com with an `X-Api-Key` header; get a free key at https://api-ninjas.com/register. Human-readable docs: https://api-ninjas.com/api. Index for LLMs: https://api-ninjas.com/llms.txt.'
  version: 1.0.0
  contact:
    name: API Ninjas
    url: https://api-ninjas.com
  license:
    name: Proprietary
servers:
- url: https://api.api-ninjas.com
  description: API Ninjas Production
security:
- ApiKeyAuth: []
tags:
- name: Whois
  description: The Whois API retrieves domain registration information for any given domain using the WHOIS protocol.
paths:
  /v1/whois:
    get:
      tags:
      - Whois
      summary: Get domain registration details
      description: Returns WHOIS registration details for a `domain`, including registrar, creation and expiry dates. For risk and email-provider signals use /domain.
      operationId: getWhois
      parameters:
      - $ref: '#/components/parameters/WhoisOpenapi_domain'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhoisResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhoisOpenapi_ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhoisOpenapi_ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhoisOpenapi_ErrorResponse'
      security:
      - ApiKeyAuth: []
components:
  schemas:
    WhoisResponse:
      type: object
      description: Domain registration details.
      properties:
        domain_name:
          type: string
          example: example.com
        registrar:
          type: string
          example: reserved-internet assigned numbers authority
        registrar_url:
          type: string
          description: URL of the domain registrar.
          example: http://res-dom.iana.org
        whois_server:
          type: string
          description: WHOIS server used for the query.
          example: whois.iana.org
        updated_date:
          type: array
          items:
            type: integer
            format: unix-time
          description: When the domain was last updated, as Unix timestamps, oldest first. Usually one value; some registries report more than one.
          example:
          - 1628924504
        creation_date:
          type: array
          items:
            type: integer
            format: unix-time
          description: When the domain was created, as Unix timestamps, oldest first. Usually one value.
          example:
          - 808372800
        expiration_date:
          type: array
          items:
            type: integer
            format: unix-time
          description: When the domain expires, as Unix timestamps, oldest first. Usually one value; some registries report more than one.
          example:
          - 1660363200
        name_servers:
          type: array
          items:
            type: string
          example:
          - a.iana-servers.net
          - b.iana-servers.net
        dnssec:
          type: string
          example: signeddelegation
        emails:
          type: string
          description: Contact email(s) from the WHOIS record. Returned only for some TLDs (e.g.org); not present for.com.
          example: cbath@pir.org
        is_eu:
          type:
          - boolean
          - 'null'
          description: Whether the registrant country is an EU member state.
        is_eea:
          type:
          - boolean
          - 'null'
          description: Whether the registrant country is in the European Economic Area.
        is_sepa:
          type:
          - boolean
          - 'null'
          description: Whether the registrant country is in the Single Euro Payments Area.
        registrant_privacy:
          type:
          - boolean
          - 'null'
          description: Premium (paid plans only). Whether the registrant's identity is hidden.
          example: false
        registrant_org:
          type: string
          description: Premium (paid plans only). The organisation that owns the domain, in its original casing.
          example: Google LLC
        privacy_service:
          type: string
          description: Premium (paid plans only). Name of the privacy or proxy provider standing in for the registrant.
          example: Domains By Proxy, LLC
        registrant_country:
          type: string
          description: Premium (paid plans only). Registrant country as an ISO 3166-1 alpha-2 code.
          example: US
        registrant_state:
          type: string
          description: Premium (paid plans only). Registrant state or province.
          example: CA
        registrant_name:
          type: string
          description: Premium (paid plans only). The individual registrant's name.
          example: Jane Roe
    WhoisOpenapi_ErrorResponse:
      type: object
      properties:
        message:
          type: string
        code:
          type: integer
  parameters:
    WhoisOpenapi_domain:
      name: domain
      in: query
      description: Valid domain to check (e.g. example.com). For top-level domains other than .com, a premium subscription is required.
      required: true
      schema:
        type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
externalDocs:
  description: API Ninjas documentation
  url: https://api-ninjas.com/api