# Which of these domains expires soonest

**Use case:** 

Registration and expiry dates for a portfolio of domains in one run, so the one about to lapse can be found without opening a registrar dashboard. A domain whose registry publishes no expiry date is returned with that field empty rather than with a guess.

## Input

```json
{
  "domains": [
    "apache.org",
    "debian.org",
    "kernel.org",
    "gnu.org",
    "ietf.org",
    "w3.org",
    "iana.org"
  ],
  "checkRdap": true,
  "checkTls": true,
  "timeoutSecs": 20,
  "maxRetries": 3
}
```

## Output

```json
{
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "ok": {
    "label": "Answered",
    "format": "boolean"
  },
  "registered": {
    "label": "Registered",
    "format": "boolean"
  },
  "rdapDomain": {
    "label": "Registration is for",
    "format": "string"
  },
  "registrationLookupError": {
    "label": "Why registration is missing",
    "format": "string"
  },
  "registrar": {
    "label": "Registrar",
    "format": "string"
  },
  "registeredOn": {
    "label": "Registered on",
    "format": "string"
  },
  "domainAgeDays": {
    "label": "Age (days)",
    "format": "integer"
  },
  "expiresOn": {
    "label": "Expires on",
    "format": "string"
  },
  "daysUntilExpiry": {
    "label": "Expires in (days)",
    "format": "integer"
  },
  "dnsProvider": {
    "label": "DNS provider",
    "format": "string"
  },
  "mailProvider": {
    "label": "Mail provider",
    "format": "string"
  },
  "hasMx": {
    "label": "Has MX",
    "format": "boolean"
  },
  "spfStrictness": {
    "label": "SPF",
    "format": "string"
  },
  "dmarcPolicy": {
    "label": "DMARC",
    "format": "string"
  },
  "spoofProtection": {
    "label": "Spoof protection",
    "format": "string"
  },
  "tlsIssuer": {
    "label": "TLS issuer",
    "format": "string"
  },
  "tlsDaysUntilExpiry": {
    "label": "TLS expires in (days)",
    "format": "integer"
  },
  "tlsExpired": {
    "label": "TLS expired",
    "format": "boolean"
  },
  "tlsMatchesDomain": {
    "label": "TLS covers domain",
    "format": "boolean"
  },
  "reason": {
    "label": "Reason",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Bulk WHOIS & DNS Checker - SSL Expiry, Domain, MX, SPF, DMARC](https://apify.com/neverempty/domain-lookup.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/neverempty/domain-lookup.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/neverempty/domain-lookup.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
