---
title: "WHOIS Lookup"
method: GET
path: "/v1/{query}/whois/"
tags: ["Lookups"]
---

# WHOIS Lookup

`GET /v1/{query}/whois/`

## Request

- Base URL: `https://api.domaintools.com`
- URL: `https://api.domaintools.com/v1/{query}/whois/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - HTTP basic
  - API key in query parameter `signature`
- TypeScript: <https://skmtc.dev/domaintools/apis/domaintools-lookups-and-monitors-api/docs/v1/:query/whois/get.ts> (a function with typed inputs; its response is checked against the schema)

WHOIS records for domain names and IP addresses.

## Path parameters

- `query` string, required

## Query parameters

- `app_partner` string: A short identifier, code, or handle.
- `app_name` string: A short identifier, code, or handle.
- `app_version` string: A short identifier, code, or handle.
- `format` 'html' | 'json' | 'xml': The desired response format.

## Response `200`

OK

- WhoisLookup: Response for the WHOIS Lookup endpoint.
  - `response` object
    - `registrant` string
    - `registration` object
      - `created` string, date
      - `expires` string, date
      - `updated` string, date
      - `registrar` string
      - `statuses` string[]
    - `name_servers` string[]
    - `whois` object
      - `date` string, date
      - `record` string
    - `record_source` string

## Other responses

- `400`: 400: Bad Request. The request was invalid. The response will contain details about the error.
- `401`: 401: Unauthorized. API credentials are required and were not provided, or the provided credentials are not valid.
- `403`: 403: Forbidden. The API credentials provided do not have access to the requested resource or endpoint.
- `404`: 404: Not Found. The requested resource does not exist.
- `500`: 500: Internal Server Error. An unexpected error occurred on the server. If the problem persists, contact DomainTools support.
- `503`: 503: Service Unavailable. The service is temporarily unavailable.

---

[API](https://skmtc.dev/domaintools/apis/domaintools-lookups-and-monitors-api.md) - [All operations](https://skmtc.dev/domaintools/apis/domaintools-lookups-and-monitors-api/llms.txt) - [OpenAPI document](https://skmtc.dev/domaintools/apis/domaintools-lookups-and-monitors-api/revisions/832f423a9729?raw)
