---
title: "Name Server Monitor"
method: GET
path: "/v1/name-server-monitor/"
tags: ["Monitors"]
---

# Name Server Monitor

`GET /v1/name-server-monitor/`

## Request

- Base URL: `https://api.domaintools.com`
- URL: `https://api.domaintools.com/v1/name-server-monitor/`
- 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/name-server-monitor/get.ts> (a function with typed inputs; its response is checked against the schema)

Receive notification when there are new and/or deleted domains on a given Domain Name Server.

## Query parameters

- `query` string, hostname, required: A valid, fully-qualified domain name (FQDN).
- `days_back` integer
- `page` integer
- `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

- NameServerMonitor: Response for the Name Server Monitor endpoint.
  - `response` object
    - `limit` integer
    - `date` string, date
    - `name_server` string, hostname
    - `total` integer
    - `page` integer
    - `page_count` integer
    - `alerts` object[]
      - `new_name_server` string, hostname
      - `old_name_server` string, hostname
      - `action` string
      - `domain` 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)
