# lookupDomainRegistration

**Identifier:** `domain_lookupDomainRegistration`

**Provider:** [Domain](https://kirha.com/providers/domain.md)

Registration record of a domain name from its registry (RDAP, the successor of WHOIS): whether it is registered, the registrar, creation, last change and expiry dates, status flags, name servers and DNSSEC. Use it to check a domain's age and expiry or whether a name is taken.

## Run it with the CLI

```bash
kirha tools run domain_lookupDomainRegistration \
  --input '{
    "domain": "kirha.com"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "domain_lookupDomainRegistration",
  "input": {
    "domain": "kirha.com"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "domain": {
      "description": "Domain name without scheme or path, e.g., kirha.com",
      "maxLength": 253,
      "minLength": 3,
      "type": "string"
    }
  },
  "required": [
    "domain"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "createdOn": {
      "type": "string"
    },
    "daysUntilExpiry": {
      "type": "number"
    },
    "dnssecSigned": {
      "type": "boolean"
    },
    "domain": {
      "type": "string"
    },
    "expiresOn": {
      "type": "string"
    },
    "lastChangedOn": {
      "type": "string"
    },
    "nameServers": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "registered": {
      "type": "boolean"
    },
    "registrant": {
      "type": "string"
    },
    "registrar": {
      "type": "string"
    },
    "registrarIanaId": {
      "type": "string"
    },
    "status": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "domain",
    "status",
    "nameServers"
  ],
  "type": "object"
}
```

-----

[All Domain tools](https://kirha.com/providers/domain.md) · [< Back to tools list](https://kirha.com/tools.md)